Tests: Add negative Time formatting tests

This commit is contained in:
SirLynix 2024-02-02 14:31:40 +01:00
parent 56751072f5
commit 44e55adcd9
1 changed files with 3 additions and 0 deletions

View File

@ -47,7 +47,10 @@ SCENARIO("Time", "[CORE][Time]")
CHECK(time <= Nz::Time::Seconds(2));
CHECK(ToString(time) == "1.23457s");
CHECK(ToString(-time) == "-1.23457s");
CHECK(ToString(time - Nz::Time::Second()) == "234.567ms");
CHECK(ToString(Nz::Time::Second() - time) == "-234.567ms");
CHECK(ToString(time - Nz::Time::Seconds(1.234f)) == "567us");
CHECK(ToString(Nz::Time::Seconds(1.234f) - time) == "-567us");
}
}