forked from mpusz/mp-units
refactor: code refactored to comply with clang-tidy
This commit is contained in:
@@ -35,7 +35,7 @@ using namespace mp_units::si::unit_symbols;
|
||||
|
||||
TEST_CASE("std::atomic works with dimensioned types", "[atomic][assignment]")
|
||||
{
|
||||
std::atomic<quantity<isq::area[m2]>> a1 = 3.0 * isq::area[m2];
|
||||
std::atomic<quantity<isq::area[m2]>> a2 = 3.0 * isq::area[m2];
|
||||
const std::atomic<quantity<isq::area[m2]>> a1 = 3.0 * isq::area[m2];
|
||||
const std::atomic<quantity<isq::area[m2]>> a2 = 3.0 * isq::area[m2];
|
||||
REQUIRE(a1.load() == a2.load());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user