testing3/bf1c_test.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 17 Nov 2018 13:33:51 +0000
changeset 207 5bbbe737184e
parent 160 863feeb5c760
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
     2
//import scala.concurrent._
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
     3
//import scala.concurrent.duration._
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
     4
//import ExecutionContext.Implicits.global
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
     5
//import scala.language.postfixOps 
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
     6
//import scala.language.reflectiveCalls
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
     8
//lazy val f = Future {
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  import CW8b._
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  assert(start("[-]", Map(0 -> 100)) == Map(0 -> 0))
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  assert(start("[->+<]", Map(0 -> 10)) == Map(0 -> 0, 1 -> 10))
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
  assert(start("[>>+>>+<<<<-]", Map(0 -> 42)) == Map(0 -> 0, 2 -> 42, 4 -> 42))
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
  assert(start("""++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
       <-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.""", Map()) == Map(0 -> 0, 5 -> 33, 1 -> 0, 6 -> 10, 2 -> 72, 3 -> 100, 4 -> 87))
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    17
//}
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    19
//Await.result(f, 120 second)