392
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
1 |
import CW10a._
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
2 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
3 |
val urban_bench =
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
4 |
""">+[<+++++++++++++>-]<[[>+>+<<-]>[<+>-]++++++++
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
5 |
[>++++++++<-]>.[-]<<>++++++++++[>++++++++++[>++
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
6 |
++++++++[>++++++++++[>++++++++++[>++++++++++[>+
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
7 |
+++++++++[-]<-]<-]<-]<-]<-]<-]<-]++++++++++."""
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
8 |
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
9 |
assert(run(urban_bench, Map()) ==
|
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff
changeset
|
10 |
Map(0 -> 10, 5 -> 0, 1 -> 0, 6 -> 0, 2 -> 0, 7 -> 0, 3 -> 0, 4 -> 0))
|