about summary refs log tree commit diff
path: root/tests/lang
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-30T12·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-30T12·25+0000
commitdce1afdc67b36e1b06d03c541758cb3cd97ccedd (patch)
tree2d1aa8c78b9a0a24ac9b8035f4cad0a4e3d8efa7 /tests/lang
parent3151bdea55ceb341b08998d2b29d9451e81c2143 (diff)
* TDD: == should do a deep equality test, i.e., it should strictly
  evaluate its arguments.

Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/eval-okay-eq.exp1
-rw-r--r--tests/lang/eval-okay-eq.nix3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-eq.exp b/tests/lang/eval-okay-eq.exp
new file mode 100644
index 000000000000..2015847b65e7
--- /dev/null
+++ b/tests/lang/eval-okay-eq.exp
@@ -0,0 +1 @@
+Bool(True)
diff --git a/tests/lang/eval-okay-eq.nix b/tests/lang/eval-okay-eq.nix
new file mode 100644
index 000000000000..73d200b38141
--- /dev/null
+++ b/tests/lang/eval-okay-eq.nix
@@ -0,0 +1,3 @@
+["foobar" (rec {x = 1; y = x;})]
+==
+[("foo" + "bar") ({x = 1; y = 1;})]