From 06f95dd07ce691a1f12c8ec7fa5ad84858d81cd0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Nov 2007 13:49:59 +0000 Subject: * New primop `readFile' to get the contents of a file as a string. --- tests/lang/eval-okay-readfile.exp | 1 + tests/lang/eval-okay-readfile.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/lang/eval-okay-readfile.exp create mode 100644 tests/lang/eval-okay-readfile.nix (limited to 'tests/lang') diff --git a/tests/lang/eval-okay-readfile.exp b/tests/lang/eval-okay-readfile.exp new file mode 100644 index 000000000..979771c7a --- /dev/null +++ b/tests/lang/eval-okay-readfile.exp @@ -0,0 +1 @@ +Str("builtins.readFile ./eval-okay-readfile.nix\n",[]) diff --git a/tests/lang/eval-okay-readfile.nix b/tests/lang/eval-okay-readfile.nix new file mode 100644 index 000000000..82f7cb174 --- /dev/null +++ b/tests/lang/eval-okay-readfile.nix @@ -0,0 +1 @@ +builtins.readFile ./eval-okay-readfile.nix -- cgit v1.2.3