Skip to content

Commit c5ae581

Browse files
author
lyon
committed
fun is ok, mem not ok
1 parent e826039 commit c5ae581

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"program": "${workspaceFolder}/build/src/test/pikascript_test",
1212
"args": [
13-
"--gtest_filter=arg_test.name"
13+
"--gtest_filter=strs*"
1414
],
1515
"stopAtEntry": false,
1616
"cwd": "${workspaceFolder}",

src/test/args-test.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ TEST(args_test, print_int)
7272
{
7373
Args *args = New_args(NULL);
7474
args_setInt(args, (char *)"testInt", 124);
75-
args_print(args, (char *)"testInt");
76-
char *str = args_print(args, (char *)"testInt");
77-
printf("str: %s\r\n", str);
7875
EXPECT_EQ(1, strEqu((char *)"124", args_print(args, (char *)"testInt")));
7976
args_deinit(args);
8077
EXPECT_EQ(pikaMemNow(), 0);

0 commit comments

Comments
 (0)