Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (39 sloc) 1.752 kB
41e67d0 Add a test_cast test case. This checks that the casting that is impl…
Eric Haszlakiewicz authored
1 Parsed input: {
2 "string_of_digits": "123",
3 "regular_number": 222,
4 "decimal_number": 99.55,
5 "boolean_true": true,
6 "boolean_false": false,
7 "big_number": 2147483649,
8 }
9 Result is not NULL
10 new_obj.string_of_digits json_object_get_type()=string
11 new_obj.string_of_digits json_object_get_int()=123
12 new_obj.string_of_digits json_object_get_int64()=123
13 new_obj.string_of_digits json_object_get_boolean()=1
14 new_obj.string_of_digits json_object_get_double()=123.000000
15 new_obj.regular_number json_object_get_type()=int
16 new_obj.regular_number json_object_get_int()=222
17 new_obj.regular_number json_object_get_int64()=222
18 new_obj.regular_number json_object_get_boolean()=1
19 new_obj.regular_number json_object_get_double()=222.000000
20 new_obj.decimal_number json_object_get_type()=double
21 new_obj.decimal_number json_object_get_int()=99
22 new_obj.decimal_number json_object_get_int64()=99
23 new_obj.decimal_number json_object_get_boolean()=1
24 new_obj.decimal_number json_object_get_double()=99.550000
25 new_obj.boolean_true json_object_get_type()=boolean
26 new_obj.boolean_true json_object_get_int()=1
27 new_obj.boolean_true json_object_get_int64()=1
28 new_obj.boolean_true json_object_get_boolean()=1
29 new_obj.boolean_true json_object_get_double()=1.000000
30 new_obj.boolean_false json_object_get_type()=boolean
31 new_obj.boolean_false json_object_get_int()=0
32 new_obj.boolean_false json_object_get_int64()=0
33 new_obj.boolean_false json_object_get_boolean()=0
34 new_obj.boolean_false json_object_get_double()=0.000000
35 new_obj.big_number json_object_get_type()=int
36 new_obj.big_number json_object_get_int()=2147483647
37 new_obj.big_number json_object_get_int64()=2147483649
38 new_obj.big_number json_object_get_boolean()=1
39 new_obj.big_number json_object_get_double()=2147483649.000000
Something went wrong with that request. Please try again.