[libcxx-commits] [PATCH] D144737: [libc++][test] Use the Japanese test.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 24 11:54:12 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGffe9ebbfe1b9: [libc++][test] Use the Japanese test. (authored by Mordante).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144737/new/
https://reviews.llvm.org/D144737
Files:
libcxx/test/std/time/time.hms/time.hms.nonmembers/ostream.pass.cpp
Index: libcxx/test/std/time/time.hms/time.hms.nonmembers/ostream.pass.cpp
===================================================================
--- libcxx/test/std/time/time.hms/time.hms.nonmembers/ostream.pass.cpp
+++ libcxx/test/std/time/time.hms/time.hms.nonmembers/ostream.pass.cpp
@@ -123,29 +123,28 @@
SV("00:00:00,666666"));
// ja_JP locale - floating points
-
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{
std::chrono::duration<long double, std::femto>{1'234'567'890.123}}) == SV("00:00:00.000001234567890"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{
std::chrono::duration<long double, std::pico>{1'234'567'890.123}}) == SV("00:00:00.001234567890"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{
std::chrono::duration<long double, std::nano>{1'234'567'890.123}}) == SV("00:00:01.234567890"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::micro>{1'234'567.123}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::micro>{1'234'567.123}}) ==
SV("00:00:01.234567"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::milli>{123'456.123}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::milli>{123'456.123}}) ==
SV("00:02:03.456"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::centi>{12'345.123}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::centi>{12'345.123}}) ==
SV("00:02:03.45"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<float, std::deci>{1'234.123}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<float, std::deci>{1'234.123}}) ==
SV("00:02:03.4"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<float>{123.123}}) == SV("00:02:03"));
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<float>{123.123}}) == SV("00:02:03"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::deca>{-366.5}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::deca>{-366.5}}) ==
SV("-01:01:05"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::hecto>{-72.64}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::hecto>{-72.64}}) ==
SV("-02:01:04"));
- assert(stream_c_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::kilo>{-86}}) ==
+ assert(stream_ja_JP_locale<CharT>(std::chrono::hh_mm_ss{std::chrono::duration<double, std::kilo>{-86}}) ==
SV("-23:53:20"));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144737.500265.patch
Type: text/x-patch
Size: 3115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230224/f82ca588/attachment.bin>
More information about the libcxx-commits
mailing list