author | Christian Urban <christian.urban@kcl.ac.uk> |
Thu, 13 Jan 2022 12:55:03 +0000 | |
changeset 423 | e9d14d58be3c |
parent 392 | 97ecdc8cb61b |
child 424 | daf561a83ba6 |
permissions | -rw-r--r-- |
import CW10a._ val urban_bench = """>+[<+++++++++++++>-]<[[>+>+<<-]>[<+>-]++++++++ [>++++++++<-]>.[-]<<>++++++++++[>++++++++++[>++ ++++++++[>++++++++++[>++++++++++[>++++++++++[>+ +++++++++[-]<-]<-]<-]<-]<-]<-]<-]++++++++++.""" assert(run(urban_bench, Map()) == Map(0 -> 10, 5 -> 0, 1 -> 0, 6 -> 0, 2 -> 0, 7 -> 0, 3 -> 0, 4 -> 0))