Commit 7dcdd63
authored
[factory-sensors] Add test for temperature of 0 degrees (exercism#2538)
This exercise should reject solutions with `!temperature`.
1) In the story `null` is a special signal that the sensor is
broken. That means in-universe the sensor will needlesly be
replaced if it happens to encounter temperatures of 0 degrees.
2) In our world, the assignment requires that students make
distinction between nulls and numbers. 0 is a valid number.
There is no reason to have it _intentionally_ be handled
differently than -1 or 1 and lumped with `null`.1 parent 43d02cf commit 7dcdd63
File tree
2 files changed
+6
-1
lines changed- exercises/concept/factory-sensors
- .meta
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments