summary refs log tree commit diff
path: root/tests/lang
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-07-24 15:50:29 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-07-24 15:50:29 +0000
commitb545c669a0d6b6ab7b1aa56560001e43fe9c0956 (patch)
treea12bd93fc16302493b8df4753baae79cb477417d /tests/lang
parent57751fdb55ad04d82542165417511d26304cadc2 (diff)
downloadguix-b545c669a0d6b6ab7b1aa56560001e43fe9c0956.tar.gz
* Tests for domain checks.
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/eval-fail-bad-value.nix7
-rw-r--r--tests/lang/eval-okay-good-value.exp1
-rw-r--r--tests/lang/eval-okay-good-value.nix7
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/eval-fail-bad-value.nix b/tests/lang/eval-fail-bad-value.nix
new file mode 100644
index 0000000000..97969145ee
--- /dev/null
+++ b/tests/lang/eval-fail-bad-value.nix
@@ -0,0 +1,7 @@
+let {
+
+  f = {x, y : ["baz" "bat"]}: x + y;
+
+  body = f {x = "foo"; y = "bar";};
+
+}
diff --git a/tests/lang/eval-okay-good-value.exp b/tests/lang/eval-okay-good-value.exp
new file mode 100644
index 0000000000..dddca4459b
--- /dev/null
+++ b/tests/lang/eval-okay-good-value.exp
@@ -0,0 +1 @@
+Str("foobar")
diff --git a/tests/lang/eval-okay-good-value.nix b/tests/lang/eval-okay-good-value.nix
new file mode 100644
index 0000000000..5dfc6d85e9
--- /dev/null
+++ b/tests/lang/eval-okay-good-value.nix
@@ -0,0 +1,7 @@
+let {
+
+  f = {x, y : ["baz" "bar" "bat"]}: x + y;
+
+  body = f {x = "foo"; y = "bar";};
+
+}