mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
remove id and link id in link
This commit is contained in:
parent
afa11ec6a7
commit
d4af7e7271
@ -1,4 +1,5 @@
|
||||
import PikaStdLib
|
||||
from PikaObj import *
|
||||
|
||||
print('hello world')
|
||||
mem = PikaStdLib.MemChecker()
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit af731b0fd8e2422094e9b6927789cf11019476d6
|
||||
Subproject commit e2e5d38a4c32b5eecc6a6f55b04c1d1279a5ed62
|
Binary file not shown.
@ -22,17 +22,14 @@ TEST(args_test, test2)
|
||||
int64_t int64Out = 0;
|
||||
void *pointer = NULL;
|
||||
char *strOut = NULL;
|
||||
args_setFloatWithDefaultName(args, 24.5);
|
||||
args_setInt(args, (char *)"int64Test", (int64_t)22221);
|
||||
args_setPtr(args, (char *)"pointerTest", (void *)2222322);
|
||||
args_setStr(args, (char *)"strTest", (char *)"teeeds");
|
||||
|
||||
floatOut = args_getFloatByIndex(args, 0);
|
||||
int64Out = args_getInt(args, (char *)"int64Test");
|
||||
pointer = args_getPtr(args, (char *)"pointerTest");
|
||||
strOut = args_getStr(args, (char *)"strTest");
|
||||
|
||||
EXPECT_EQ(floatOut, 24.5);
|
||||
EXPECT_EQ(int64Out, 22221);
|
||||
EXPECT_EQ((uint64_t)pointer, 2222322);
|
||||
EXPECT_EQ(1, strEqu((char *)"teeeds", strOut));
|
||||
|
@ -19,14 +19,7 @@ TEST(link_test, test1)
|
||||
data2->b = 21;
|
||||
link_addNode(link, data2, (contentDeinitFun)data2->deinit);
|
||||
|
||||
dataTest_t *data1InLink = (dataTest_t *)link_getNode(link, 0)->content;
|
||||
dataTest_t *data2InLink = (dataTest_t *)link_getNode(link, 1)->content;
|
||||
EXPECT_EQ(2, data1InLink->a);
|
||||
EXPECT_EQ(5, data1InLink->b);
|
||||
EXPECT_EQ(4, data2InLink->a);
|
||||
EXPECT_EQ(21, data2InLink->b);
|
||||
EXPECT_EQ(2, link_getSize(link));
|
||||
link_removeNode(link, data1InLink);
|
||||
link_deinit(link);
|
||||
}
|
||||
TEST(link_test, mem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user