main_marking5/bf_test4b.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 08 Nov 2021 23:17:51 +0000
changeset 415 fced9a61c881
parent 392 97ecdc8cb61b
child 424 daf561a83ba6
permissions -rw-r--r--
update

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))