mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 16:59:08 +00:00
24 lines
481 B
C++
24 lines
481 B
C++
|
|
#include "storm/Handle.hpp"
|
||
|
|
#include "test/Test.hpp"
|
||
|
|
|
||
|
|
TEST_CASE("DECLARE_STORM_HANDLE", "[handle]") {
|
||
|
|
SECTION("declares handle") {
|
||
|
|
DECLARE_STORM_HANDLE(HTEST);
|
||
|
|
HTEST test;
|
||
|
|
|
||
|
|
SUCCEED();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
TEST_CASE("DECLARE_STORM_CHILD_HANDLE", "[handle]") {
|
||
|
|
SECTION("declares child handle") {
|
||
|
|
DECLARE_STORM_HANDLE(HPARENT);
|
||
|
|
DECLARE_STORM_CHILD_HANDLE(HCHILD, HPARENT);
|
||
|
|
|
||
|
|
HPARENT parent;
|
||
|
|
HCHILD child;
|
||
|
|
|
||
|
|
SUCCEED();
|
||
|
|
}
|
||
|
|
}
|