summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-09 09:15:00 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-09 09:15:00 -0400
commit27bece20a8abae9a2b4251e065010a4e52590c45 (patch)
treefee74b2377e7420ac2a356f727b4407073f4aaee /tests
parentfdce05336da4bf7698aae0f60b6c6cfcf3f00a93 (diff)
Datatype positivity check
Diffstat (limited to 'tests')
-rw-r--r--tests/datatype.ur3
-rw-r--r--tests/datatype.urp5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/datatype.ur b/tests/datatype.ur
index 1e1a91aa..302a7da0 100644
--- a/tests/datatype.ur
+++ b/tests/datatype.ur
@@ -11,3 +11,6 @@ datatype list = Nil | Cons of {Head : int, Tail : list}
val nil = Nil
val l1 = Cons {Head = 0, Tail = nil}
+
+datatype term = App of term * term | Abs of term -> term
+
diff --git a/tests/datatype.urp b/tests/datatype.urp
new file mode 100644
index 00000000..f79cb875
--- /dev/null
+++ b/tests/datatype.urp
@@ -0,0 +1,5 @@
+debug
+database dbname=test
+exe /tmp/webapp
+
+datatype