Skip to content

Commit 7448993

Browse files
OgnjenOgnjen
authored andcommitted
json tests enabled
1 parent aba17bd commit 7448993

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Release/tests/Functional/json/parsing_tests.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ TEST(bug_416116)
203203
}
204204

205205
// TODO: re-enable some of these for Linux, TFS#535122.
206-
#ifdef _MS_WINDOWS
207206

208207
TEST(byte_ptr_parsing_array)
209208
{
@@ -238,7 +237,7 @@ TEST(byte_ptr_parsing_object)
238237
TEST(Konnichiwa)
239238
{
240239
utility::string_t ws = U("\"こんにちは\"");
241-
std::string s = utf16_to_utf8(ws);
240+
std::string s = to_utf8string(ws);
242241

243242
std::stringstream ss;
244243
ss << s;
@@ -254,14 +253,14 @@ TEST(Konnichiwa)
254253

255254
TEST(Russian)
256255
{
257-
std::wstring ws = L"{ \"results\" : [ { \"id\" : 272655310, \"name\" : \"Андрей Иванов\" } ] }";
256+
utility::string_t ws = U("{ \"results\" : [ { \"id\" : 272655310, \"name\" : \"Андрей Иванов\" } ] }");
258257

259258
json::value v1 = json::value::parse(ws);
260259
auto s2 = v1.to_string();
261260

262261
VERIFY_ARE_EQUAL(s2, ws);
263262

264-
std::string s = utf16_to_utf8(ws);
263+
std::string s = to_utf8string(ws);
265264

266265
std::stringstream ss;
267266
ss << s;
@@ -271,8 +270,6 @@ TEST(Russian)
271270
VERIFY_ARE_EQUAL(s3, ws);
272271
}
273272

274-
#endif // _MS_WINDOWS
275-
276273
utility::string_t make_deep_json_string(size_t depth)
277274
{
278275
utility::string_t strval;
@@ -302,4 +299,4 @@ TEST(deeply_nested)
302299

303300
} // SUITE(parsing_tests)
304301

305-
}}}
302+
}}}

0 commit comments

Comments
 (0)