fix testcase "Test unicode matches C++"

This commit is contained in:
Bernd Amend 2021-05-22 23:54:18 +02:00
parent 82ef037912
commit 55ec76fd39
2 changed files with 3 additions and 1 deletions

View File

@ -155,7 +155,7 @@ if(MSVC)
add_definitions(/w34062)
endif()
add_definitions(/bigobj /permissive-)
add_definitions(/bigobj /permissive- /utf-8)
# Note on MSVC compiler flags.
# The code base selective disables warnings as necessary when the compiler is complaining too much
# about something that is perfectly valid, or there is simply no technical way around it

View File

@ -1341,6 +1341,8 @@ TEST_CASE("Test reference member being registered")
CHECK(d == Approx(2.3));
}
// starting with C++20 u8"" strings cannot be compared with std::string
// and the support for std::u8strings is still terrible.
TEST_CASE("Test unicode matches C++")
{
chaiscript::ChaiScript_Basic chai(create_chaiscript_stdlib(), create_chaiscript_parser());