fix(command): fixed infinite cleanup bug caused by ignorant usage of references by yours truly

This commit is contained in:
phaneron 2024-11-22 02:20:28 -05:00
parent d25d3653bb
commit e9df378771
4 changed files with 39 additions and 29 deletions

13
test/Command.cpp Normal file
View 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));
}
}