mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(command): fixed infinite cleanup bug caused by ignorant usage of references by yours truly
This commit is contained in:
parent
d25d3653bb
commit
e9df378771
4 changed files with 39 additions and 29 deletions
13
test/Command.cpp
Normal file
13
test/Command.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "storm/Command.hpp"
|
||||
#include "test/Test.hpp"
|
||||
|
||||
TEST_CASE("SCmdRegisterArgList", "[command]") {
|
||||
SECTION("register an argument list normally") {
|
||||
ARGLIST argList[] = {
|
||||
{ 0x0, 1, "one", nullptr },
|
||||
{ 0x0, 2, "two", nullptr }
|
||||
};
|
||||
|
||||
SCmdRegisterArgList(argList, sizeof(argList) / sizeof(ARGLIST));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue