2025-09-03 23:02:17 -05:00
|
|
|
#include "storm/Handle.hpp"
|
|
|
|
|
#include "test/Test.hpp"
|
|
|
|
|
|
2025-09-23 15:19:21 -07:00
|
|
|
#define UNUSED(x) ((void)x)
|
|
|
|
|
|
2025-09-03 23:02:17 -05:00
|
|
|
TEST_CASE("DECLARE_STORM_HANDLE", "[handle]") {
|
|
|
|
|
SECTION("declares handle") {
|
|
|
|
|
DECLARE_STORM_HANDLE(HTEST);
|
|
|
|
|
HTEST test;
|
|
|
|
|
|
2025-09-23 15:19:21 -07:00
|
|
|
UNUSED(test);
|
2025-09-03 23:02:17 -05:00
|
|
|
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;
|
|
|
|
|
|
2025-09-23 15:19:21 -07:00
|
|
|
UNUSED(parent);
|
|
|
|
|
UNUSED(child);
|
2025-09-03 23:02:17 -05:00
|
|
|
SUCCEED();
|
|
|
|
|
}
|
|
|
|
|
}
|