summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2011-02-16 14:02:31 -0700
committerLloyd Hilaiel <lloyd@hilaiel.com>2011-02-16 14:02:31 -0700
commit4adbfa2c4e5068ff255a342c8a38b35ad864235a (patch)
treef9161dd8df98f55f6de1378572e98af397e913b1 /test
parentfa8f8dbeb710cce57fa723b7762cba549b5492c2 (diff)
downloadyajl-4adbfa2c4e5068ff255a342c8a38b35ad864235a.tar.gz
add test case and goldfile contributed by karl adam
Diffstat (limited to 'test')
-rw-r--r--test/cases/doubles_in_array.json1
-rw-r--r--test/cases/doubles_in_array.json.gold8
2 files changed, 9 insertions, 0 deletions
diff --git a/test/cases/doubles_in_array.json b/test/cases/doubles_in_array.json
new file mode 100644
index 0000000..06bf727
--- /dev/null
+++ b/test/cases/doubles_in_array.json
@@ -0,0 +1 @@
+[0.00011999999999999999, 6E-06, 6E-06, 1E-06, 1E-06]
diff --git a/test/cases/doubles_in_array.json.gold b/test/cases/doubles_in_array.json.gold
new file mode 100644
index 0000000..57f5b9a
--- /dev/null
+++ b/test/cases/doubles_in_array.json.gold
@@ -0,0 +1,8 @@
+array open '['
+double: 0.00012
+double: 6e-06
+double: 6e-06
+double: 1e-06
+double: 1e-06
+array close ']'
+memory leaks: 0