summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjsonpp/testEncoding.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libjsonpp/testEncoding.cpp b/libjsonpp/testEncoding.cpp
index f13afb7..26386df 100644
--- a/libjsonpp/testEncoding.cpp
+++ b/libjsonpp/testEncoding.cpp
@@ -30,3 +30,11 @@ BOOST_AUTO_TEST_CASE( write_latin1 )
BOOST_REQUIRE_EQUAL("\"A \xD9\xF1\xEE\xE7\xF4\xD0\xE8 string.\"", writeString(Glib::ustring("A ÙñîçôÐè string."), "latin1"));
}
+BOOST_AUTO_TEST_CASE( defaultEncoding )
+{
+ json::String s("Some string value");
+ std::stringstream ss;
+ json::serializeValue(s, ss, "");
+ BOOST_REQUIRE_EQUAL(ss.str(), R"S("Some string value")S");
+}
+