Update Catch2, reframe badge

This commit is contained in:
Rob Loach
2020-03-16 19:20:48 -04:00
parent eb80090d92
commit 66dab6f260
4 changed files with 4889 additions and 1630 deletions

View File

@@ -7,22 +7,22 @@
TEST_CASE("raylib_test", "[raylib_test]" ) {
SECTION("Vector2") {
raylib::Vector2 vec(50, 100);
CHECK(vec.getX() == vec.x);
REQUIRE(vec.getX() == vec.x);
vec.x = 150;
CHECK(vec.getX() == 150);
REQUIRE(vec.getX() == 150);
}
SECTION("Window") {
CHECK(raylib::Window::IsReady() == false);
REQUIRE(raylib::Window::IsReady() == false);
}
SECTION("Color") {
raylib::Color c(RED);
CHECK(c.ToInt() == ColorToInt(RED));
REQUIRE(c.ToInt() == ColorToInt(RED));
c = RAYWHITE;
CHECK(c.r == RAYWHITE.r);
REQUIRE(c.r == RAYWHITE.r);
CHECK(raylib::Color::LightGray.r == LIGHTGRAY.r);
REQUIRE(raylib::Color::LightGray.r == LIGHTGRAY.r);
}
}