diff options
Diffstat (limited to 'test/testdata/eval-okay-tojson.nix')
-rw-r--r-- | test/testdata/eval-okay-tojson.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-tojson.nix b/test/testdata/eval-okay-tojson.nix new file mode 100644 index 0000000..ce67943 --- /dev/null +++ b/test/testdata/eval-okay-tojson.nix | |||
@@ -0,0 +1,13 @@ | |||
1 | builtins.toJSON | ||
2 | { a = 123; | ||
3 | b = -456; | ||
4 | c = "foo"; | ||
5 | d = "foo\n\"bar\""; | ||
6 | e = true; | ||
7 | f = false; | ||
8 | g = [ 1 2 3 ]; | ||
9 | h = [ "a" [ "b" { "foo\nbar" = {}; } ] ]; | ||
10 | i = 1 + 2; | ||
11 | j = 1.44; | ||
12 | k = { __toString = self: self.a; a = "foo"; }; | ||
13 | } | ||