]> matita.cs.unibo.it Git - helm.git/commitdiff
added regtest for optional inductive type on mutcase
authorStefano Zacchiroli <zack@upsilon.cc>
Fri, 13 Feb 2004 13:32:12 +0000 (13:32 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Fri, 13 Feb 2004 13:32:12 +0000 (13:32 +0000)
helm/gTopLevel/tests/match07.cic [new file with mode: 0644]
helm/gTopLevel/tests/match07.cic.test [new file with mode: 0644]

diff --git a/helm/gTopLevel/tests/match07.cic b/helm/gTopLevel/tests/match07.cic
new file mode 100644 (file)
index 0000000..15ead07
--- /dev/null
@@ -0,0 +1,4 @@
+[\lambda x:bool. nat]
+match true with
+[ true \Rightarrow O
+| false \Rightarrow (S O) ]
diff --git a/helm/gTopLevel/tests/match07.cic.test b/helm/gTopLevel/tests/match07.cic.test
new file mode 100644 (file)
index 0000000..ec1ad71
--- /dev/null
@@ -0,0 +1,16 @@
+[\lambda x:bool. nat]
+match true with
+[ true \Rightarrow O
+| false \Rightarrow (S O) ]
+### (* METASENV after disambiguation  *)
+
+### (* TERM after disambiguation      *)
+
+<[x:bool]nat>Cases true of 
+ true => O
+ false => (S O)
+end
+### (* TYPE_OF the disambiguated term *)
+([x:bool]nat true)
+### (* REDUCED disambiguated term     *)
+O