main_marking5/bf_test4b.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 02 Nov 2023 13:53:37 +0000
changeset 474 b528d1d3d3c3
parent 463 0315d9983cd0
permissions -rw-r--r--
updated

import M5a._


import scala.concurrent._
import scala.concurrent.duration._
import ExecutionContext.Implicits.global
import scala.language.postfixOps 

lazy val f = Future {
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))

}

Await.result(f, 32 second)