mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(handle): improve handle macros
This commit is contained in:
parent
5121638c27
commit
595e431d92
3 changed files with 31 additions and 6 deletions
23
test/Handle.cpp
Normal file
23
test/Handle.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue