Skip to content

Commit

Permalink
fun is ok, mem not ok
Browse files Browse the repository at this point in the history
  • Loading branch information
lyon committed Aug 31, 2021
1 parent e826039 commit c5ae581
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"program": "${workspaceFolder}/build/src/test/pikascript_test",
"args": [
"--gtest_filter=arg_test.name"
"--gtest_filter=strs*"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
Expand Down
2 changes: 1 addition & 1 deletion src/package/pikascript/pikascript-core
3 changes: 0 additions & 3 deletions src/test/args-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ TEST(args_test, print_int)
{
Args *args = New_args(NULL);
args_setInt(args, (char *)"testInt", 124);
args_print(args, (char *)"testInt");
char *str = args_print(args, (char *)"testInt");
printf("str: %s\r\n", str);
EXPECT_EQ(1, strEqu((char *)"124", args_print(args, (char *)"testInt")));
args_deinit(args);
EXPECT_EQ(pikaMemNow(), 0);
Expand Down

0 comments on commit c5ae581

Please sign in to comment.