Skip to content

Commit

Permalink
add buff test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyon committed Aug 31, 2021
1 parent c5ae581 commit 33ac945
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/args-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ TEST(args_test, test3)
EXPECT_EQ(pikaMemNow(), 0);
}

TEST(args_test, buff)
{
Args *buffs = New_args(NULL);
char *buff = args_getBuff(buffs, 256);
args_deinit(buffs);
EXPECT_EQ(pikaMemNow(), 0);
}

TEST(args_test, print_int)
{
Expand Down

0 comments on commit 33ac945

Please sign in to comment.