main_testing3/re_test6.scala
changeset 475 59e005dcf163
parent 433 6af86ba1208f
--- a/main_testing3/re_test6.scala	Thu Nov 02 13:53:37 2023 +0000
+++ b/main_testing3/re_test6.scala	Thu Nov 02 23:34:53 2023 +0000
@@ -1,10 +1,14 @@
-import M3._
+
+def urbanmain() = {
+
+  import M3._
 
-assert(SEQs_smart(Nil) == ONE)
-assert(SEQs_smart(List(ZERO)) == ZERO)
-assert(SEQs_smart(List(CHAR('a'))) == CHAR('a'))
-assert(SEQs_smart(List(ONE ~ ONE)) == ONE ~ ONE)
-assert(SEQs_smart(List(ONE, ONE)) == SEQs(List(ONE, ONE)))
-assert(ALTs_smart(Nil) == ZERO)
-assert(ALTs_smart(List(ONE ~ ONE)) == ONE ~ ONE)
-assert(ALTs_smart(List(ZERO, ZERO)) == ALTs(List(ZERO, ZERO)))
+  assert(SEQs_smart(Nil) == ONE)
+  assert(SEQs_smart(List(ZERO)) == ZERO)
+  assert(SEQs_smart(List(CHAR('a'))) == CHAR('a'))
+  assert(SEQs_smart(List(ONE ~ ONE)) == ONE ~ ONE)
+  assert(SEQs_smart(List(ONE, ONE)) == SEQs(List(ONE, ONE)))
+  assert(ALTs_smart(Nil) == ZERO)
+  assert(ALTs_smart(List(ONE ~ ONE)) == ONE ~ ONE)
+  assert(ALTs_smart(List(ZERO, ZERO)) == ALTs(List(ZERO, ZERO)))
+}