mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2026-05-05 06:43:52 +00:00
feat: sync with Whoa implementation
This commit is contained in:
parent
254ba545f5
commit
6a31dc3ea4
19 changed files with 988 additions and 774 deletions
|
|
@ -47,6 +47,16 @@ TEST_CASE("C3Vector", "[vector]") {
|
|||
}
|
||||
}
|
||||
|
||||
TEST_CASE("C3Vector::operator-", "[vector]") {
|
||||
SECTION("returns vector with negated values") {
|
||||
auto vector = C3Vector(1.0f, 2.0f, 3.0f);
|
||||
auto negated = -vector;
|
||||
CHECK(negated.x == -1.0f);
|
||||
CHECK(negated.y == -2.0f);
|
||||
CHECK(negated.z == -3.0f);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("C3Vector::operator*=", "[vector]") {
|
||||
SECTION("multiplies by 2.0f") {
|
||||
auto vector = C3Vector(1.0f, 2.0f, 3.0f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue