about summary refs log tree commit diff
path: root/tests/lang/eval-okay-fromjson.nix
diff options
context:
space:
mode:
authorChristian Theune <ct@flyingcircus.io>2016-01-06T09·03+0100
committerChristian Theune <ct@flyingcircus.io>2016-01-06T09·03+0100
commit5cdcaf5e8edd6679f667502eec421ac4e725d4ef (patch)
treeab550f06668023ee90c3b89d23838e60fab02952 /tests/lang/eval-okay-fromjson.nix
parentb4bda4765af09acb86a4dd71105059491e7dcc30 (diff)
Adapt tests to show that floats work properly.
Diffstat (limited to 'tests/lang/eval-okay-fromjson.nix')
-rw-r--r--tests/lang/eval-okay-fromjson.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-fromjson.nix b/tests/lang/eval-okay-fromjson.nix
index 5ed0c1c4395d..2a9ad0cabeb0 100644
--- a/tests/lang/eval-okay-fromjson.nix
+++ b/tests/lang/eval-okay-fromjson.nix
@@ -12,7 +12,9 @@ builtins.fromJSON
               "Width":  100
           },
           "Animated" : false,
-          "IDs": [116, 943, 234, 38793, true  ,false,null, -100]
+          "IDs": [116, 943, 234, 38793, true  ,false,null, -100],
+          "Latitude":  37.7668,
+          "Longitude": -122.3959,
         }
     }
   ''
@@ -28,5 +30,7 @@ builtins.fromJSON
         };
       Animated = false;
       IDs = [ 116 943 234 38793 true false null (0-100) ];
+      Latitude = 37.7668;
+      Longitude = -122.3959;
     };
   }