testing5/bf_test3.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 07 Dec 2018 03:15:46 +0000
changeset 239 0c752ac51cfa
parent 236 e461b5325b5e
child 243 9bb36426c781
permissions -rw-r--r--
updated


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)