feat: value_cast support added

Resolves #239 and #120
This commit is contained in:
Mateusz Pusz
2023-02-03 11:08:13 +01:00
parent cf3408a3c8
commit b4f47c3fef
19 changed files with 220 additions and 212 deletions
@@ -105,7 +105,7 @@ TEST_CASE("vector quantity", "[la]")
SECTION("truncating")
{
const quantity<isq::position_vector[m], vector<int>> v{vector<int>{1001, 1002, 1003}};
CHECK(quantity_cast<km>(v).number() == vector<int>{1, 1, 1});
CHECK(value_cast<km>(v).number() == vector<int>{1, 1, 1});
}
}