author | Christian Urban <christian.urban@kcl.ac.uk> |
Tue, 08 Nov 2022 00:27:47 +0000 | |
changeset 433 | 6af86ba1208f |
parent 403 | main_testing3/re_test4.scala@ffce7b61b446 |
child 475 | 59e005dcf163 |
permissions | -rw-r--r-- |
403 | 1 |
import M3._ |
153 | 2 |
|
433 | 3 |
assert(SEQs_smart(Nil) == ONE) |
4 |
assert(SEQs_smart(List(ZERO)) == ZERO) |
|
5 |
assert(SEQs_smart(List(CHAR('a'))) == CHAR('a')) |
|
6 |
assert(SEQs_smart(List(ONE ~ ONE)) == ONE ~ ONE) |
|
7 |
assert(SEQs_smart(List(ONE, ONE)) == SEQs(List(ONE, ONE))) |
|
8 |
assert(ALTs_smart(Nil) == ZERO) |
|
9 |
assert(ALTs_smart(List(ONE ~ ONE)) == ONE ~ ONE) |
|
10 |
assert(ALTs_smart(List(ZERO, ZERO)) == ALTs(List(ZERO, ZERO))) |