main_marking5/bf_test4b.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 08 Nov 2021 02:29:24 +0000
changeset 411 f55742af79ef
parent 392 97ecdc8cb61b
child 424 daf561a83ba6
permissions -rw-r--r--
updated

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