File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 12
12
[88bf4b28-0de3-4883-93c7-db1b14aa806e ]
13
13
description = " just a number"
14
14
15
+ [18983214-1dfc-4ebd-ac77-c110dde699ce ]
16
+ description = " just a zero"
17
+
18
+ [607c08ee-2241-4288-916d-dae5455c87e6 ]
19
+ description = " just a negative number"
20
+
15
21
[bb8c655c-cf42-4dfc-90e0-152fcfd8d4e0 ]
16
22
description = " addition"
17
23
24
+ [bb9f2082-171c-46ad-ad4e-c3f72087c1b5 ]
25
+ description = " addition with a left hand zero"
26
+
27
+ [6fa05f17-405a-4742-80ae-5d1a8edb0d5d ]
28
+ description = " addition with a right hand zero"
29
+
18
30
[79e49e06-c5ae-40aa-a352-7a3a01f70015 ]
19
31
description = " more addition"
20
32
Original file line number Diff line number Diff line change @@ -5,10 +5,26 @@ describe('wordy', function()
5
5
assert .are .same (5 , wordy .answer (' What is 5?' ))
6
6
end )
7
7
8
+ it (' just a zero' , function ()
9
+ assert .are .same (0 , wordy .answer (' What is 0?' ))
10
+ end )
11
+
12
+ it (' just a negative number' , function ()
13
+ assert .are .same (- 123 , wordy .answer (' What is -123?' ))
14
+ end )
15
+
8
16
it (' addition' , function ()
9
17
assert .are .same (2 , wordy .answer (' What is 1 plus 1?' ))
10
18
end )
11
19
20
+ it (' addition with a left hand zero' , function ()
21
+ assert .are .same (2 , wordy .answer (' What is 0 plus 2?' ))
22
+ end )
23
+
24
+ it (' addition with a right hand zero' , function ()
25
+ assert .are .same (3 , wordy .answer (' What is 3 plus 0?' ))
26
+ end )
27
+
12
28
it (' more addition' , function ()
13
29
assert .are .same (55 , wordy .answer (' What is 53 plus 2?' ))
14
30
end )
You can’t perform that action at this time.
0 commit comments