testing5/bf_test3.scala
changeset 243 9bb36426c781
parent 236 e461b5325b5e
child 286 5c57c407e27b
--- a/testing5/bf_test3.scala	Fri Dec 07 12:17:27 2018 +0000
+++ b/testing5/bf_test3.scala	Sun Dec 09 01:36:49 2018 +0000
@@ -1,9 +1,9 @@
 
-assert(jumpRight("[******]***", 1, 0) == 8)
-assert(jumpRight("[**[*]*]***", 1, 0) == 8)
-assert(jumpRight("[**[*]*]***", 1, 0) == 8)  
-assert(jumpRight("[**[***]***", 1, 0) == 11)
-assert(jumpRight("[*[][]*]***", 1, 0) == 8)
-assert(jumpLeft("[******]***", 6, 0) == 1)
-assert(jumpLeft("[******]***", 7, 0) == -1)
-assert(jumpLeft("[*[][]*]***", 6, 0) == 1)
+assert(jumpRight("[xxxxxx]xxx", 1, 0) == 8)
+assert(jumpRight("[xx[x]x]xxx", 1, 0) == 8)
+assert(jumpRight("[xx[x]x]xxx", 1, 0) == 8)  
+assert(jumpRight("[xx[xxx]xxx", 1, 0) == 11)
+assert(jumpRight("[x[][]x]xxx", 1, 0) == 8)
+assert(jumpLeft("[xxxxxx]xxx", 6, 0) == 1)
+assert(jumpLeft("[xxxxxx]xxx", 7, 0) == -1)
+assert(jumpLeft("[x[][]x]xxx", 6, 0) == 1)