Skip to content

Commit 0f33c47

Browse files
committed
bob: Bump to test version 1.4.0
This includes: - 1.0.0 -> 1.1.0: "Calm down, I know what I'm doing!" in [1]. - 1.1.0 -> 1.2.0: No-op in [2] - 1.2.0 -> 1.2.1: "no letters" in [3]. - 1.2.1 -> 1.3.0: "I HATE THE DMV" in [4]. - 1.3.0 -> 1.4.0: Grammatical error in testdata in [5]. [1]: exercism/problem-specifications#1025 [2]: exercism/problem-specifications#1056 [3]: exercism/problem-specifications#1282 [4]: exercism/problem-specifications#1293 [5]: exercism/problem-specifications#1319
1 parent 0f26cc3 commit 0f33c47

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

exercises/bob/example.sml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ val response =
1313
if isNothing chars
1414
then "Fine. Be that way!"
1515
else if isYell chars
16-
then "Whoa, chill out!"
16+
then if isQuestion chars
17+
then "Calm down, I know what I'm doing!"
18+
else "Whoa, chill out!"
1719
else if isQuestion chars
1820
then "Sure."
1921
else "Whatever."

exercises/bob/test.sml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* version 1.0.0 *)
1+
(* version 1.4.0 *)
22

33
use "bob.sml";
44
use "testlib.sml";
@@ -33,12 +33,12 @@ val testsuite =
3333
(fn _ => response ("It's OK if you don't want to go to the DMV.") |> Expect.equalTo "Whatever."),
3434

3535
test "forceful question"
36-
(fn _ => response ("WHAT THE HELL WERE YOU THINKING?") |> Expect.equalTo "Whoa, chill out!"),
36+
(fn _ => response ("WHAT THE HELL WERE YOU THINKING?") |> Expect.equalTo "Calm down, I know what I'm doing!"),
3737

3838
test "shouting numbers"
3939
(fn _ => response ("1, 2, 3 GO!") |> Expect.equalTo "Whoa, chill out!"),
4040

41-
test "only numbers"
41+
test "no letters"
4242
(fn _ => response ("1, 2, 3") |> Expect.equalTo "Whatever."),
4343

4444
test "question with only numbers"
@@ -48,7 +48,7 @@ val testsuite =
4848
(fn _ => response ("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!") |> Expect.equalTo "Whoa, chill out!"),
4949

5050
test "shouting with no exclamation mark"
51-
(fn _ => response ("I HATE YOU") |> Expect.equalTo "Whoa, chill out!"),
51+
(fn _ => response ("I HATE THE DMV") |> Expect.equalTo "Whoa, chill out!"),
5252

5353
test "statement containing question mark"
5454
(fn _ => response ("Ending with ? means a question.") |> Expect.equalTo "Whatever."),
@@ -69,7 +69,7 @@ val testsuite =
6969
(fn _ => response ("\t\t\t\t\t\t\t\t\t\t") |> Expect.equalTo "Fine. Be that way!"),
7070

7171
test "multiple line question"
72-
(fn _ => response ("\nDoes this cryogenic chamber make me look fat?\nno") |> Expect.equalTo "Whatever."),
72+
(fn _ => response ("\nDoes this cryogenic chamber make me look fat?\nNo.") |> Expect.equalTo "Whatever."),
7373

7474
test "starting with whitespace"
7575
(fn _ => response (" hmmmmmmm...") |> Expect.equalTo "Whatever."),

0 commit comments

Comments
 (0)