From 215ec2ddc6088be2291722a544c6ab5a1b00a5a1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Aug 2006 14:34:29 +0000 Subject: * New primop __toXML (or builtins.toXML) to convert an expression to an XML representation stored in a string. This should be useful to pass structured information to builders. --- tests/lang/eval-okay-to-xml.exp | 1 + tests/lang/eval-okay-to-xml.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/lang/eval-okay-to-xml.exp create mode 100644 tests/lang/eval-okay-to-xml.nix (limited to 'tests') diff --git a/tests/lang/eval-okay-to-xml.exp b/tests/lang/eval-okay-to-xml.exp new file mode 100644 index 000000000000..ee7d4c7d32e5 --- /dev/null +++ b/tests/lang/eval-okay-to-xml.exp @@ -0,0 +1 @@ +Str("\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n") diff --git a/tests/lang/eval-okay-to-xml.nix b/tests/lang/eval-okay-to-xml.nix new file mode 100644 index 000000000000..ff1791b30eb5 --- /dev/null +++ b/tests/lang/eval-okay-to-xml.nix @@ -0,0 +1 @@ +builtins.toXML [("a" + "b") 10 (rec {x = "x"; y = x;})] -- cgit 1.4.1