First Commit
This commit is contained in:
commit
8a6c7106e3
1312 files changed
+425396
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
|
||||
#include <test.hpp>
|
||||
|
||||
#include <vtzero/geometry.hpp>
|
||||
|
||||
TEST_CASE("default constructed point") {
|
||||
vtzero::point p{};
|
||||
|
||||
REQUIRE(p.x == 0);
|
||||
REQUIRE(p.y == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("point") {
|
||||
vtzero::point p1{4, 5};
|
||||
vtzero::point p2{5, 4};
|
||||
vtzero::point p3{4, 5};
|
||||
|
||||
REQUIRE(p1.x == 4);
|
||||
REQUIRE(p1.y == 5);
|
||||
|
||||
REQUIRE_FALSE(p1 == p2);
|
||||
REQUIRE(p1 != p2);
|
||||
REQUIRE(p1 == p3);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user