From b545c669a0d6b6ab7b1aa56560001e43fe9c0956 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 24 Jul 2006 15:50:29 +0000 Subject: * Tests for domain checks. --- tests/lang/eval-fail-bad-value.nix | 7 +++++++ tests/lang/eval-okay-good-value.exp | 1 + tests/lang/eval-okay-good-value.nix | 7 +++++++ 3 files changed, 15 insertions(+) create mode 100644 tests/lang/eval-fail-bad-value.nix create mode 100644 tests/lang/eval-okay-good-value.exp create mode 100644 tests/lang/eval-okay-good-value.nix diff --git a/tests/lang/eval-fail-bad-value.nix b/tests/lang/eval-fail-bad-value.nix new file mode 100644 index 000000000000..97969145eeb1 --- /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 000000000000..dddca4459bfb --- /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 000000000000..5dfc6d85e93c --- /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";}; + +} -- cgit 1.4.1