type malloc

This commit is contained in:
graduateDesign 2021-08-22 09:36:31 +08:00
parent 617323e180
commit 32269894a0
2 changed files with 11 additions and 1 deletions

@ -1 +1 @@
Subproject commit e6103420b177974e180fc5a777e013dbee1f4b9e
Subproject commit 93e465689c71214232d1739186706dc34c90a485

View File

@ -56,4 +56,14 @@ TEST(arg_test, name)
EXPECT_EQ(1, strEqu((char *)"test", name));
arg_deinit(arg);
EXPECT_EQ(DMEMS.heapUsed, 0);
}
TEST(arg_test, type)
{
Arg *arg = New_arg(NULL);
arg_setType(arg, (char *)"test");
char *type = arg_getType(arg);
EXPECT_EQ(1, strEqu((char *)"test", type));
arg_deinit(arg);
EXPECT_EQ(DMEMS.heapUsed, 0);
}