testing5/bf_test4.scala
changeset 286 5c57c407e27b
parent 236 e461b5325b5e
child 329 8a34b2ebc8cc
equal deleted inserted replaced
285:bd9d142d2cd8 286:5c57c407e27b
       
     1 import CW10a._
     1 
     2 
     2 assert(run("[-]", Map(0 -> 100)) == Map(0 -> 0))
     3 assert(run("[-]", Map(0 -> 100)) == Map(0 -> 0))
     3 assert(run("[->+<]", Map(0 -> 10)) == Map(0 -> 0, 1 -> 10))
     4 assert(run("[->+<]", Map(0 -> 10)) == Map(0 -> 0, 1 -> 10))
     4 assert(run("[>>+>>+<<<<-]", Map(0 -> 42)) == Map(0 -> 0, 2 -> 42, 4 -> 42))
     5 assert(run("[>>+>>+<<<<-]", Map(0 -> 42)) == Map(0 -> 0, 2 -> 42, 4 -> 42))
     5 val hw_urban = """+++++[->++++++++++<]>--<+++[->>++++++++++
     6 val hw_urban = """+++++[->++++++++++<]>--<+++[->>++++++++++