We store all JSON numbers as strings. To allow using json libraries
that store them in numeric types, use a more predictable and normalized
value.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
tests/virjsontest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/virjsontest.c b/tests/virjsontest.c
index 685df7276..22bfd028a 100644
--- a/tests/virjsontest.c
+++ b/tests/virjsontest.c
@@ -540,7 +540,7 @@ mymain(void)
DO_TEST_PARSE("number without garbage", "[ 234545 ]",
"[234545]");
DO_TEST_PARSE_FAIL("number with garbage", "[ 2345b45 ]");
- DO_TEST_PARSE("float without garbage", "[ 0.0314159e+100 ]",
"[0.0314159e+100]");
+ DO_TEST_PARSE("float without garbage", "[ 1.024e19 ]",
"[1.024e19]");
DO_TEST_PARSE_FAIL("float with garbage", "[ 0.0314159ee+100 ]");
DO_TEST_PARSE("string", "[ \"The meaning of life\" ]",
--
2.16.1