mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
16 lines
437 B
C++
16 lines
437 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);
|
|
|
|
raylib::Color c(RED);
|
|
int redInt = c.ToInt();
|
|
CHECK(redInt == ColorToInt(RED));
|
|
} |