mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
use hexcode instead of u8 string on windows
This commit is contained in:
@@ -30,9 +30,17 @@ BOOST_AUTO_TEST_CASE(test_basic_string)
|
||||
TOML11_TEST_LEX_ACCEPT(lex_string,
|
||||
"\"192.168.1.1\"",
|
||||
"\"192.168.1.1\"");
|
||||
|
||||
#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
|
||||
TOML11_TEST_LEX_ACCEPT(lex_string,
|
||||
"\"\xE4\xB8\xAD\xE5\x9B\xBD\"",
|
||||
"\"\xE4\xB8\xAD\xE5\x9B\xBD\"");
|
||||
#else
|
||||
TOML11_TEST_LEX_ACCEPT(lex_string,
|
||||
u8"\"中国\"",
|
||||
u8"\"中国\"");
|
||||
#endif
|
||||
|
||||
TOML11_TEST_LEX_ACCEPT(lex_string,
|
||||
"\"You'll hate me after this - #\"",
|
||||
"\"You'll hate me after this - #\"");
|
||||
|
Reference in New Issue
Block a user