We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343e6a3 commit 99f85b4Copy full SHA for 99f85b4
Release/tests/functional/json/parsing_tests.cpp
@@ -613,6 +613,26 @@ TEST(non_default_locale)
613
}
614
615
616
+TEST(parse_overload_success)
617
+{
618
+ std::error_code err;
619
+ utility::string_t str(U("/JSONString/"));
620
+ json::value parsedObject = json::value::parse(str, err);
621
+
622
+ VERIFY_IS_TRUE(err.value() == 0);
623
+ VERIFY_IS_TRUE(!parsedObject.is_null());
624
+}
625
626
+TEST(parse_overload_failed)
627
628
629
+ utility::string_t str(U("JSONString"));
630
631
632
+ VERIFY_IS_TRUE(err.value() > 0);
633
+ VERIFY_IS_TRUE(parsedObject.is_null());
634
635
636
} // SUITE(parsing_tests)
637
638
}}}
0 commit comments