author | Christian Urban <christian.urban@kcl.ac.uk> |
Tue, 07 Dec 2021 23:17:51 +0000 | |
changeset 418 | fa7f7144f2bb |
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))