main_marking3/re_test3a.scala
changeset 463 0315d9983cd0
parent 424 daf561a83ba6
--- a/main_marking3/re_test3a.scala	Sun Jan 15 10:58:13 2023 +0000
+++ b/main_marking3/re_test3a.scala	Sat Mar 11 22:01:53 2023 +0000
@@ -2,7 +2,9 @@
 
 
 assert(flts(Nil) == Nil)
-assert(flts(ZERO::ZERO::Nil) == Nil)
-assert(flts(ZERO::ONE::ZERO::ONE::Nil) == List(ONE, ONE))
-assert(flts(ONE::ALTs(List(ONE))::ONE::Nil) == List(ONE, ONE, ONE))
-assert(flts(ONE::ALTs(List(ONE))::ONE::ALTs(List(ONE))::Nil) == List(ONE, ONE, ONE, ONE))
+assert(flts(ZERO::ZERO::Nil) == List(ZERO))
+assert(flts(ZERO::ONE::ZERO::ONE::Nil) == List(ZERO))
+assert(flts(ONE::ALTs(List(ONE))::ONE::Nil) == List(ALTs(List(ONE))))
+assert(flts(ONE::ALTs(List(ONE))::ONE::ALTs(List(ONE))::Nil) == List(ALTs(List(ONE)), ALTs(List(ONE))))
+assert(flts(List(CHAR('a'), ONE, ONE, CHAR('b')), Nil) == List(CHAR('a'), CHAR('b')))
+assert(flts(List(ONE ~ CHAR('a'), CHAR('b') ~ ONE), Nil) == List(ONE, CHAR('a'), CHAR('b'), ONE))