mirror of
https://github.com/fmtlib/fmt.git
synced 2025-03-26 17:37:01 +00:00
Upgrade module-test
to msvc 16.11.5 and 17.0-pre5 (#2558)
This commit is contained in:
parent
e6d5059cbb
commit
df40e94673
@ -76,8 +76,10 @@ bool oops_detail_namespace_is_visible;
|
||||
namespace fmt {
|
||||
bool namespace_detail_invisible() {
|
||||
#if defined(FMT_HIDE_MODULE_BUGS) && defined(_MSC_FULL_VER) && \
|
||||
_MSC_FULL_VER <= 192930129
|
||||
// bug in msvc up to 16.11-pre1:
|
||||
((_MSC_VER == 1929 && _MSC_FULL_VER <= 192930136) || \
|
||||
(_MSC_VER == 1930 && _MSC_FULL_VER <= 193030704))
|
||||
// bug in msvc up to 16.11.5 / 17.0-pre5:
|
||||
|
||||
// the namespace is visible even when it is neither
|
||||
// implicitly nor explicitly exported
|
||||
return true;
|
||||
@ -97,8 +99,8 @@ TEST(module_test, detail_namespace) {
|
||||
// macros must not be imported from a *named* module [cpp.import]/5.1
|
||||
TEST(module_test, macros) {
|
||||
#if defined(FMT_HIDE_MODULE_BUGS) && defined(_MSC_FULL_VER) && \
|
||||
_MSC_FULL_VER <= 192930129
|
||||
// bug in msvc up to 16.11-pre1:
|
||||
_MSC_FULL_VER <= 192930130
|
||||
// bug in msvc up to 16.11-pre2:
|
||||
// include-guard macros leak from BMI
|
||||
// and even worse: they cannot be #undef-ined
|
||||
macro_leaked = false;
|
||||
@ -456,8 +458,7 @@ TEST(module_test, time_duration) {
|
||||
}
|
||||
|
||||
TEST(module_test, weekday) {
|
||||
EXPECT_EQ("Monday",
|
||||
std::format(std::locale::classic(), "{:%A}", fmt::weekday(1)));
|
||||
EXPECT_EQ("Mon", fmt::format(std::locale::classic(), "{}", fmt::weekday(1)));
|
||||
}
|
||||
|
||||
TEST(module_test, to_string_view) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user