1
- (* version 1.0 .0 *)
1
+ (* version 1.4 .0 *)
2
2
3
3
use " bob.sml" ;
4
4
use " testlib.sml" ;
@@ -33,12 +33,12 @@ val testsuite =
33
33
(fn _ => response (" It's OK if you don't want to go to the DMV." ) |> Expect.equalTo " Whatever." ),
34
34
35
35
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 !" ),
37
37
38
38
test " shouting numbers"
39
39
(fn _ => response (" 1, 2, 3 GO!" ) |> Expect.equalTo " Whoa, chill out!" ),
40
40
41
- test " only numbers "
41
+ test " no letters "
42
42
(fn _ => response (" 1, 2, 3" ) |> Expect.equalTo " Whatever." ),
43
43
44
44
test " question with only numbers"
@@ -48,7 +48,7 @@ val testsuite =
48
48
(fn _ => response (" ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!" ) |> Expect.equalTo " Whoa, chill out!" ),
49
49
50
50
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!" ),
52
52
53
53
test " statement containing question mark"
54
54
(fn _ => response (" Ending with ? means a question." ) |> Expect.equalTo " Whatever." ),
@@ -69,7 +69,7 @@ val testsuite =
69
69
(fn _ => response (" \t\t\t\t\t\t\t\t\t\t " ) |> Expect.equalTo " Fine. Be that way!" ),
70
70
71
71
test " multiple line question"
72
- (fn _ => response (" \n Does this cryogenic chamber make me look fat?\n no " ) |> Expect.equalTo " Whatever." ),
72
+ (fn _ => response (" \n Does this cryogenic chamber make me look fat?\n No. " ) |> Expect.equalTo " Whatever." ),
73
73
74
74
test " starting with whitespace"
75
75
(fn _ => response (" hmmmmmmm..." ) |> Expect.equalTo " Whatever." ),
0 commit comments