mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
add char8_t test
This commit is contained in:
parent
2c4b48d4e0
commit
396feb6353
@ -98,8 +98,8 @@ cc_test(
|
|||||||
)
|
)
|
||||||
|
|
||||||
cc_test(
|
cc_test(
|
||||||
name = "unicode_test",
|
name = "supported_chars_test",
|
||||||
srcs = ["unicode_test.cpp"],
|
srcs = ["supported_chars_test.cpp"],
|
||||||
deps = [
|
deps = [
|
||||||
"//:fast_float",
|
"//:fast_float",
|
||||||
"@doctest//doctest",
|
"@doctest//doctest",
|
||||||
|
|||||||
@ -68,7 +68,7 @@ endfunction(fast_float_add_cpp_test)
|
|||||||
|
|
||||||
fast_float_add_cpp_test(rcppfastfloat_test)
|
fast_float_add_cpp_test(rcppfastfloat_test)
|
||||||
fast_float_add_cpp_test(wide_char_test)
|
fast_float_add_cpp_test(wide_char_test)
|
||||||
fast_float_add_cpp_test(unicode_test)
|
fast_float_add_cpp_test(supported_chars_test)
|
||||||
fast_float_add_cpp_test(example_test)
|
fast_float_add_cpp_test(example_test)
|
||||||
fast_float_add_cpp_test(example_comma_test)
|
fast_float_add_cpp_test(example_comma_test)
|
||||||
fast_float_add_cpp_test(basictest)
|
fast_float_add_cpp_test(basictest)
|
||||||
|
|||||||
@ -31,6 +31,13 @@ int main() {
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cpp_char8_t
|
||||||
|
if (!test<char8_t>("4.2", 4.2)) {
|
||||||
|
std::cout << "test failure for char8_t" << std::endl;
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!test<char16_t>("4.2", 4.2)) {
|
if (!test<char16_t>("4.2", 4.2)) {
|
||||||
std::cout << "test failure for char16_t" << std::endl;
|
std::cout << "test failure for char16_t" << std::endl;
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
Loading…
x
Reference in New Issue
Block a user