11use bob:: * ;
22
33#[ test]
4- fn stating_something ( ) {
5- assert_eq ! ( reply( "Tom-ay-to, tom-aaaah-to." ) , "Whatever." ) ;
4+ fn asking_a_question ( ) {
5+ assert_eq ! (
6+ reply( "Does this cryogenic chamber make me look fat?" ) ,
7+ "Sure."
8+ ) ;
69}
710
811#[ test]
@@ -13,17 +16,23 @@ fn shouting() {
1316
1417#[ test]
1518#[ ignore]
16- fn shouting_gibberish ( ) {
17- assert_eq ! ( reply( "FCECDFCAAB" ) , "Whoa, chill out!" ) ;
19+ fn forceful_question ( ) {
20+ assert_eq ! (
21+ reply( "WHAT'S GOING ON?" ) ,
22+ "Calm down, I know what I'm doing!"
23+ ) ;
1824}
1925
2026#[ test]
2127#[ ignore]
22- fn asking_a_question ( ) {
23- assert_eq ! (
24- reply( "Does this cryogenic chamber make me look fat?" ) ,
25- "Sure."
26- ) ;
28+ fn silence ( ) {
29+ assert_eq ! ( reply( "" ) , "Fine. Be that way!" ) ;
30+ }
31+
32+ #[ test]
33+ #[ ignore]
34+ fn stating_something ( ) {
35+ assert_eq ! ( reply( "Tom-ay-to, tom-aaaah-to." ) , "Whatever." ) ;
2736}
2837
2938#[ test]
@@ -40,44 +49,53 @@ fn asking_gibberish() {
4049
4150#[ test]
4251#[ ignore]
43- fn talking_forcefully ( ) {
44- assert_eq ! ( reply( "Hi there! " ) , "Whatever ." ) ;
52+ fn question_with_no_letters ( ) {
53+ assert_eq ! ( reply( "4? " ) , "Sure ." ) ;
4554}
4655
4756#[ test]
4857#[ ignore]
49- fn using_acronyms_in_regular_speech ( ) {
50- assert_eq ! (
51- reply( "It's OK if you don't want to go work for NASA." ) ,
52- "Whatever."
53- ) ;
58+ fn non_letters_with_question ( ) {
59+ assert_eq ! ( reply( ":) ?" ) , "Sure." ) ;
5460}
5561
5662#[ test]
5763#[ ignore]
58- fn forceful_question ( ) {
64+ fn prattling_on ( ) {
65+ assert_eq ! ( reply( "Wait! Hang on. Are you going to be OK?" ) , "Sure." ) ;
66+ }
67+
68+ #[ test]
69+ #[ ignore]
70+ fn ending_with_whitespace ( ) {
71+ assert_eq ! ( reply( "Okay if like my spacebar quite a bit? " ) , "Sure." ) ;
72+ }
73+
74+ #[ test]
75+ #[ ignore]
76+ fn multiple_line_question ( ) {
5977 assert_eq ! (
60- reply( "WHAT'S GOING ON ?" ) ,
61- "Calm down, I know what I'm doing! "
78+ reply( "\n Does this cryogenic chamber make \n me look fat ?" ) ,
79+ "Sure. "
6280 ) ;
6381}
6482
6583#[ test]
6684#[ ignore]
67- fn shouting_numbers ( ) {
68- assert_eq ! ( reply( "1, 2, 3 GO! " ) , "Whoa, chill out!" ) ;
85+ fn shouting_gibberish ( ) {
86+ assert_eq ! ( reply( "FCECDFCAAB " ) , "Whoa, chill out!" ) ;
6987}
7088
7189#[ test]
7290#[ ignore]
73- fn no_letters ( ) {
74- assert_eq ! ( reply( "1, 2, 3 " ) , "Whatever. " ) ;
91+ fn shouting_a_statement_containing_a_question_mark ( ) {
92+ assert_eq ! ( reply( "DO LIONS EAT PEOPLE? AHHHHH. " ) , "Whoa, chill out! " ) ;
7593}
7694
7795#[ test]
7896#[ ignore]
79- fn question_with_no_letters ( ) {
80- assert_eq ! ( reply( "4? " ) , "Sure. " ) ;
97+ fn shouting_numbers ( ) {
98+ assert_eq ! ( reply( "1, 2, 3 GO! " ) , "Whoa, chill out! " ) ;
8199}
82100
83101#[ test]
@@ -97,56 +115,53 @@ fn shouting_with_no_exclamation_mark() {
97115
98116#[ test]
99117#[ ignore]
100- fn statement_containing_question_mark ( ) {
101- assert_eq ! ( reply( "Ending with ? means a question." ) , "Whatever." ) ;
102- }
103-
104- #[ test]
105- #[ ignore]
106- fn non_letters_with_question ( ) {
107- assert_eq ! ( reply( ":) ?" ) , "Sure." ) ;
118+ fn prolonged_silence ( ) {
119+ assert_eq ! ( reply( " " ) , "Fine. Be that way!" ) ;
108120}
109121
110122#[ test]
111123#[ ignore]
112- fn prattling_on ( ) {
113- assert_eq ! ( reply( "Wait! Hang on. Are you going to be OK? " ) , "Sure. " ) ;
124+ fn alternate_silence ( ) {
125+ assert_eq ! ( reply( "\t \t \t \t \t \t \t \t \t \t " ) , "Fine. Be that way! " ) ;
114126}
115127
116128#[ test]
117129#[ ignore]
118- fn silence ( ) {
119- assert_eq ! ( reply( "" ) , "Fine. Be that way!" ) ;
130+ fn other_whitespace ( ) {
131+ assert_eq ! ( reply( "\n \r \t " ) , "Fine. Be that way!" ) ;
120132}
121133
122134#[ test]
123135#[ ignore]
124- fn prolonged_silence ( ) {
125- assert_eq ! ( reply( " " ) , "Fine. Be that way! " ) ;
136+ fn talking_forcefully ( ) {
137+ assert_eq ! ( reply( "Hi there! " ) , "Whatever. " ) ;
126138}
127139
128140#[ test]
129141#[ ignore]
130- fn alternate_silence ( ) {
131- assert_eq ! ( reply( "\t \t \t \t \t \t \t \t \t \t " ) , "Fine. Be that way!" ) ;
142+ fn using_acronyms_in_regular_speech ( ) {
143+ assert_eq ! (
144+ reply( "It's OK if you don't want to go work for NASA." ) ,
145+ "Whatever."
146+ ) ;
132147}
133148
134149#[ test]
135150#[ ignore]
136- fn starting_with_whitespace ( ) {
137- assert_eq ! ( reply( " hmmmmmmm... " ) , "Whatever." ) ;
151+ fn no_letters ( ) {
152+ assert_eq ! ( reply( "1, 2, 3 " ) , "Whatever." ) ;
138153}
139154
140155#[ test]
141156#[ ignore]
142- fn ending_with_whitespace ( ) {
143- assert_eq ! ( reply( "Okay if like my spacebar quite a bit? " ) , "Sure ." ) ;
157+ fn statement_containing_question_mark ( ) {
158+ assert_eq ! ( reply( "Ending with ? means a question. " ) , "Whatever ." ) ;
144159}
145160
146161#[ test]
147162#[ ignore]
148- fn other_whitespace ( ) {
149- assert_eq ! ( reply( "\n \r \t " ) , "Fine. Be that way! " ) ;
163+ fn starting_with_whitespace ( ) {
164+ assert_eq ! ( reply( " hmmmmmmm... " ) , "Whatever. " ) ;
150165}
151166
152167#[ test]
@@ -157,12 +172,3 @@ fn non_question_ending_with_whitespace() {
157172 "Whatever."
158173 ) ;
159174}
160-
161- #[ test]
162- #[ ignore]
163- fn multiple_line_question ( ) {
164- assert_eq ! (
165- reply( "\n Does this cryogenic chamber make\n me look fat?" ) ,
166- "Sure."
167- ) ;
168- }
0 commit comments