main_marking5/bf_test5.scala
changeset 463 0315d9983cd0
parent 424 daf561a83ba6
--- a/main_marking5/bf_test5.scala	Sun Jan 15 10:58:13 2023 +0000
+++ b/main_marking5/bf_test5.scala	Sat Mar 11 22:01:53 2023 +0000
@@ -1,5 +1,12 @@
 import M5b._
 
+
+import scala.concurrent._
+import scala.concurrent.duration._
+import ExecutionContext.Implicits.global
+import scala.language.postfixOps 
+
+lazy val f = Future {
 val hw_urban = """+++++[->++++++++++<]>--<+++[->>++++++++++<<]>>++<<----------[+>.>.<+<]"""
 assert(jtable(hw_urban) == Map(69 -> 61, 5 -> 20, 60 -> 70, 27 -> 44, 43 -> 28, 19 -> 6))
 
@@ -20,3 +27,8 @@
                    +++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."""
 
 assert(run2(hw_urban3) == Map(0 -> 0, 5 -> 33, 1 -> 0, 6 -> 10, 2 -> 72, 3 -> 100, 4 -> 87))
+
+}
+
+Await.result(f, 32 second)
+