@@ -131,11 +131,15 @@ mod integration_tests {
131131 assert_eq ! ( "Hello world!" , res. stdout) ;
132132 }
133133
134- //`ignore` because non-standard colors are used .
134+ //`ignore` because this results in an infinite loop .
135135 #[ test]
136136 #[ ignore]
137137 fn test04 ( ) {
138- let res = run ( "./test_images/fancy_hello_world.png" , None , None ) ;
138+ let res = run (
139+ "./test_images/fancy_hello_world.png" ,
140+ None ,
141+ Some ( vec ! [ "--fall-back-to-white" . to_string( ) ] ) ,
142+ ) ;
139143 if !res. success ( ) {
140144 println ! ( "{}" , res. stderr) ;
141145 }
@@ -144,11 +148,15 @@ mod integration_tests {
144148 assert_eq ! ( "Hello world!" , res. stdout) ;
145149 }
146150
147- //`ignore` because non-standard colors are used .
151+ //`ignore` because this results in an infinite loop .
148152 #[ test]
149153 #[ ignore]
150154 fn test05 ( ) {
151- let res = run ( "./test_images/prime_number_test.png" , Some ( "1" ) , None ) ;
155+ let res = run (
156+ "./test_images/prime_number_test.png" ,
157+ Some ( "1" ) ,
158+ Some ( vec ! [ "--fall-back-to-white" . to_string( ) ] ) ,
159+ ) ;
152160 if !res. success ( ) {
153161 println ! ( "{}" , res. stderr) ;
154162 }
@@ -227,11 +235,15 @@ mod integration_tests {
227235 assert_eq ! ( "abcdefghijklmnopqrstuvwxyz" , res. stdout) ;
228236 }
229237
230- //`ignore` because non-standard colors are used .
238+ //`ignore` because this results in an infinite loop .
231239 #[ test]
232240 #[ ignore]
233241 fn test12 ( ) {
234- let res = run ( "./test_images/prime_number_generator.png" , None , None ) ;
242+ let res = run (
243+ "./test_images/prime_number_generator.png" ,
244+ None ,
245+ Some ( vec ! [ "--fall-back-to-white" . to_string( ) ] ) ,
246+ ) ;
235247 if !res. success ( ) {
236248 println ! ( "{}" , res. stderr) ;
237249 }
@@ -317,19 +329,26 @@ mod integration_tests {
317329 assert_eq ! ( "81\n " , res. stdout) ;
318330 }
319331
320- //`ignore` because non-standard colors are used .
332+ //`--fall-back-to-white` is required for this test to pass .
321333 #[ test]
322- #[ ignore]
323334 fn test18 ( ) {
324- let res = run ( "./test_images/factorials.png" , Some ( "0" ) , None ) ;
335+ let res = run (
336+ "./test_images/factorials.png" ,
337+ Some ( "0" ) ,
338+ Some ( vec ! [ "--fall-back-to-white" . to_string( ) ] ) ,
339+ ) ;
325340 if !res. success ( ) {
326341 println ! ( "{}" , res. stderr) ;
327342 }
328343 assert ! ( res. success( ) ) ;
329344 assert ! ( res. stderr. is_empty( ) ) ;
330345 assert_eq ! ( "1\n " , res. stdout) ;
331346
332- let res = run ( "./test_images/power_function.png" , Some ( "3" ) , None ) ;
347+ let res = run (
348+ "./test_images/factorials.png" ,
349+ Some ( "3" ) ,
350+ Some ( vec ! [ "--fall-back-to-white" . to_string( ) ] ) ,
351+ ) ;
333352 if !res. success ( ) {
334353 println ! ( "{}" , res. stderr) ;
335354 }
@@ -587,14 +606,15 @@ mod integration_tests {
587606 assert_eq ! ( "I Love You Laura" , res. stdout) ;
588607 }
589608
590- //`ignore` because non-standard colors are used.
609+ //`ignore` because nothing is printed.
610+ //Perhaps the input image is hue-shifted version of some valid Piet program.
591611 #[ test]
592612 #[ ignore]
593613 fn test36 ( ) {
594614 let res = run (
595615 "./test_images/more_piet_wall_art_in_cyan_magenta_and_blue.png" ,
596616 None ,
597- None ,
617+ Some ( vec ! [ "--fall-back-to-white" . to_string ( ) ] ) ,
598618 ) ;
599619 if !res. success ( ) {
600620 println ! ( "{}" , res. stderr) ;
0 commit comments