main_testing3/re_test6.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 25 Nov 2022 00:03:15 +0000
changeset 448 db2a3e3287a9
parent 433 6af86ba1208f
child 475 59e005dcf163
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
403
ffce7b61b446 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 347
diff changeset
     1
import M3._
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
433
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     3
assert(SEQs_smart(Nil) == ONE)
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     4
assert(SEQs_smart(List(ZERO)) == ZERO)
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     5
assert(SEQs_smart(List(CHAR('a'))) == CHAR('a'))
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     6
assert(SEQs_smart(List(ONE ~ ONE)) == ONE ~ ONE)
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     7
assert(SEQs_smart(List(ONE, ONE)) == SEQs(List(ONE, ONE)))
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     8
assert(ALTs_smart(Nil) == ZERO)
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
     9
assert(ALTs_smart(List(ONE ~ ONE)) == ONE ~ ONE)
6af86ba1208f updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 403
diff changeset
    10
assert(ALTs_smart(List(ZERO, ZERO)) == ALTs(List(ZERO, ZERO)))