Files
raylib-cpp/tests/raylib_test.cpp
Rob Loach b85a050a70 Add tests
2019-01-22 23:17:28 -05:00

12 lines
353 B
C++

#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <string>
#include <raylib.h>
#include "raylib/raylib.hpp"
#include "catch.hpp"
TEST_CASE("raylib_test functions work", "[raylib_test]" ) {
raylib::Vector2 vec(50, 100);
CHECK(vec.getX() == 50.0f);
CHECK(raylib::Window::IsReady() == false);
}