From ba61dfd69504ec6263a9dee9931d93adeb6f3142 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 7 Jul 2025 21:52:08 +0200 Subject: Initialize repository --- test/testdata/eval-okay-tojson.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/testdata/eval-okay-tojson.nix (limited to 'test/testdata/eval-okay-tojson.nix') 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 @@ +builtins.toJSON + { a = 123; + b = -456; + c = "foo"; + d = "foo\n\"bar\""; + e = true; + f = false; + g = [ 1 2 3 ]; + h = [ "a" [ "b" { "foo\nbar" = {}; } ] ]; + i = 1 + 2; + j = 1.44; + k = { __toString = self: self.a; a = "foo"; }; + } -- cgit v1.2.3