#include <catch.hpp> | |
#include <rive/node.hpp> | |
TEST_CASE("Node instances", "[core]") { REQUIRE(rive::Node().x() == 0.0f); } | |
TEST_CASE("nodeX function return x value", "[node]") { | |
rive::Node* node = new rive::Node(); | |
REQUIRE(node->x() == 0.0f); | |
node->x(2.0f); | |
REQUIRE(node->x() == 2.0f); | |
delete node; | |
} |