mirror of
https://github.com/kgabis/parson.git
synced 2025-02-05 17:05:29 +00:00
added test that will fails on android
This commit is contained in:
parent
cfbf517166
commit
155f7f0639
1
tests.c
1
tests.c
@ -77,6 +77,7 @@ void test_suite_2(void) {
|
|||||||
object = json_value_get_object(root_value);
|
object = json_value_get_object(root_value);
|
||||||
TEST(STREQ(json_object_get_string(object, "string"), "lorem ipsum"));
|
TEST(STREQ(json_object_get_string(object, "string"), "lorem ipsum"));
|
||||||
TEST(STREQ(json_object_get_string(object, "utf string"), "lorem ipsum"));
|
TEST(STREQ(json_object_get_string(object, "utf string"), "lorem ipsum"));
|
||||||
|
TEST(STREQ(json_object_get_string(object, "utf-8 string"), "あいうえお"));
|
||||||
TEST(json_object_get_number(object, "positive one") == 1.0);
|
TEST(json_object_get_number(object, "positive one") == 1.0);
|
||||||
TEST(json_object_get_number(object, "negative one") == -1.0);
|
TEST(json_object_get_number(object, "negative one") == -1.0);
|
||||||
TEST(json_object_get_number(object, "hard to parse number") == -0.000314);
|
TEST(json_object_get_number(object, "hard to parse number") == -0.000314);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"string" : "lorem ipsum",
|
"string" : "lorem ipsum",
|
||||||
"utf string" : "\u006corem\u0020ipsum",
|
"utf string" : "\u006corem\u0020ipsum",
|
||||||
|
"utf-8 string": "あいうえお",
|
||||||
"positive one" : 1,
|
"positive one" : 1,
|
||||||
"negative one" : -1,
|
"negative one" : -1,
|
||||||
"pi" : 3.14,
|
"pi" : 3.14,
|
||||||
|
Loading…
Reference in New Issue
Block a user