about summary refs log tree commit diff
path: root/tests/lang/eval-okay-fromTOML.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-24T14·52+0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-24T14·52+0200
commit99cec651c9c1d95656e182871f0bb186f798077c (patch)
treea4f57bae718063708133c242ecf26e589b8a9832 /tests/lang/eval-okay-fromTOML.nix
parent8884c364ca3925feebc13e23ed9dc2a155bf2ea4 (diff)
Add more fromTOML tests
Diffstat (limited to 'tests/lang/eval-okay-fromTOML.nix')
-rw-r--r--tests/lang/eval-okay-fromTOML.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-fromTOML.nix b/tests/lang/eval-okay-fromTOML.nix
index 5626ef3382fe..dd9ad9ea122a 100644
--- a/tests/lang/eval-okay-fromTOML.nix
+++ b/tests/lang/eval-okay-fromTOML.nix
@@ -147,6 +147,25 @@
     name = "Nail"
     sku = 284758393
     color = "gray"
+
+    [[fruit]]
+      name = "apple"
+
+      [fruit.physical]
+        color = "red"
+        shape = "round"
+
+      [[fruit.variety]]
+        name = "red delicious"
+
+      [[fruit.variety]]
+        name = "granny smith"
+
+    [[fruit]]
+      name = "banana"
+
+      [[fruit.variety]]
+        name = "plantain"
   '')
 
   (builtins.fromTOML ''