Skip to content

Commit 33ac945

Browse files
author
lyon
committed
add buff test
1 parent c5ae581 commit 33ac945

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/args-test.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ TEST(args_test, test3)
6767
EXPECT_EQ(pikaMemNow(), 0);
6868
}
6969

70+
TEST(args_test, buff)
71+
{
72+
Args *buffs = New_args(NULL);
73+
char *buff = args_getBuff(buffs, 256);
74+
args_deinit(buffs);
75+
EXPECT_EQ(pikaMemNow(), 0);
76+
}
7077

7178
TEST(args_test, print_int)
7279
{

0 commit comments

Comments
 (0)