about summary refs log tree commit diff
path: root/src/test.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-17T15·45+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-17T15·45+0000
commit6656993f83fa125e7b72de3962fbb5dd71cc31a4 (patch)
tree4cad13645dfa642381ef57798ec0117faaac595b /src/test.cc
parenta7ab242fb42dad81dc1bccdca4b432587e0957dd (diff)
* Derefencing of hashed expressions.
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test.cc b/src/test.cc
index 56414956202c..39d4b333fa2f 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -72,7 +72,7 @@ void runTests()
 
     Hash builder1 = addValue("./test-builder-1.sh");
 
-    Expr e1 = ATmake("Exec(Str(<str>), External(<str>), [])",
+    Expr e1 = ATmake("Exec(Str(<str>), Hash(<str>), [])",
         thisSystem.c_str(), ((string) builder1).c_str());
 
     evalTest(e1);
@@ -80,10 +80,15 @@ void runTests()
     Hash builder2 = addValue("./test-builder-2.sh");
 
     Expr e2 = ATmake(
-        "Exec(Str(<str>), External(<str>), [Tup(Str(\"src\"), <term>)])",
+        "Exec(Str(<str>), Hash(<str>), [Tup(Str(\"src\"), <term>)])",
         thisSystem.c_str(), ((string) builder2).c_str(), e1);
 
     evalTest(e2);
+
+    Hash h3 = addValue("./test-expr.nix");
+    Expr e3 = ATmake("Deref(Hash(<str>))", ((string) h3).c_str());
+
+    evalTest(e3);
 }