author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 26 Apr 2024 17:35:36 +0100 | |
changeset 486 | 9c03b5e89a2a |
parent 475 | 59e005dcf163 |
permissions | -rw-r--r-- |
475 | 1 |
|
2 |
def urbanmain() = { |
|
3 |
||
4 |
import M3._ |
|
153 | 5 |
|
475 | 6 |
assert(SEQs_smart(Nil) == ONE) |
7 |
assert(SEQs_smart(List(ZERO)) == ZERO) |
|
8 |
assert(SEQs_smart(List(CHAR('a'))) == CHAR('a')) |
|
9 |
assert(SEQs_smart(List(ONE ~ ONE)) == ONE ~ ONE) |
|
10 |
assert(SEQs_smart(List(ONE, ONE)) == SEQs(List(ONE, ONE))) |
|
11 |
assert(ALTs_smart(Nil) == ZERO) |
|
12 |
assert(ALTs_smart(List(ONE ~ ONE)) == ONE ~ ONE) |
|
13 |
assert(ALTs_smart(List(ZERO, ZERO)) == ALTs(List(ZERO, ZERO))) |
|
14 |
} |