diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-12-14 13:23:32 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-12-14 16:22:40 +0100 |
commit | 66667130416b86208e01a0eb5541a15ea805ac26 (patch) | |
tree | 2e0f7522d76a64613ec1e834e9cf1929613d71cf /src/test/fs_tests.cpp | |
parent | 856c88776f8486446602476a1c9e133ac0cff510 (diff) |
refactor: Rename fs::path::u8string() to fs::path::utf8string()
Diffstat (limited to 'src/test/fs_tests.cpp')
-rw-r--r-- | src/test/fs_tests.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/fs_tests.cpp b/src/test/fs_tests.cpp index f6fab7f733..1581a37a07 100644 --- a/src/test/fs_tests.cpp +++ b/src/test/fs_tests.cpp @@ -20,9 +20,10 @@ BOOST_AUTO_TEST_CASE(fsbridge_pathtostring) std::string u8_str = "fs_tests_₿_🏃"; std::u8string str8{u8"fs_tests_₿_🏃"}; BOOST_CHECK_EQUAL(fs::PathToString(fs::PathFromString(u8_str)), u8_str); - BOOST_CHECK_EQUAL(fs::u8path(u8_str).u8string(), u8_str); - BOOST_CHECK_EQUAL(fs::path(str8).u8string(), u8_str); - BOOST_CHECK_EQUAL(fs::PathFromString(u8_str).u8string(), u8_str); + BOOST_CHECK_EQUAL(fs::u8path(u8_str).utf8string(), u8_str); + BOOST_CHECK_EQUAL(fs::path(str8).utf8string(), u8_str); + BOOST_CHECK(fs::path(str8).u8string() == str8); + BOOST_CHECK_EQUAL(fs::PathFromString(u8_str).utf8string(), u8_str); BOOST_CHECK_EQUAL(fs::PathToString(fs::u8path(u8_str)), u8_str); #ifndef WIN32 // On non-windows systems, verify that arbitrary byte strings containing |