mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
fix: clang is too stupid to provide a deprecation warning for text_encoding
This commit is contained in:
@ -55,7 +55,7 @@ using v = cartesian_vector<double>;
|
||||
|
||||
TEST_CASE("dimension_symbol", "[dimension][symbol]")
|
||||
{
|
||||
using enum text_encoding;
|
||||
using enum character_set;
|
||||
|
||||
std::ostringstream os;
|
||||
|
||||
@ -67,14 +67,14 @@ TEST_CASE("dimension_symbol", "[dimension][symbol]")
|
||||
|
||||
SECTION("Portable mode")
|
||||
{
|
||||
os << dimension_symbol<dimension_symbol_formatting{.encoding = portable}>(isq::power.dimension);
|
||||
os << dimension_symbol<dimension_symbol_formatting{.char_set = portable}>(isq::power.dimension);
|
||||
CHECK(os.str() == "L^2MT^-3");
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("unit_symbol", "[unit][symbol]")
|
||||
{
|
||||
using enum text_encoding;
|
||||
using enum character_set;
|
||||
using enum unit_symbol_solidus;
|
||||
using enum unit_symbol_separator;
|
||||
|
||||
@ -88,7 +88,7 @@ TEST_CASE("unit_symbol", "[unit][symbol]")
|
||||
|
||||
SECTION("Portable mode")
|
||||
{
|
||||
os << unit_symbol<unit_symbol_formatting{.encoding = portable}>(m / s2);
|
||||
os << unit_symbol<unit_symbol_formatting{.char_set = portable}>(m / s2);
|
||||
CHECK(os.str() == "m/s^2");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user