mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 22:17:02 +07:00
regen singles
This commit is contained in:
@@ -34,7 +34,7 @@ TEST_CASE("meta/meta_examples/variable/usage") {
|
||||
CHECK(pi_variable_value.get_type() == meta::resolve_type<double>());
|
||||
|
||||
// checks the typed variable value
|
||||
CHECK(pi_variable_value.cast<double>() == doctest::Approx(3.14).epsilon(0.01));
|
||||
CHECK(pi_variable_value.get_as<double>() == doctest::Approx(3.14).epsilon(0.01));
|
||||
|
||||
// we can change variable values, but only non-const
|
||||
CHECK_THROWS(pi_variable.set(6.0));
|
||||
|
||||
Reference in New Issue
Block a user