mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
cancel __init__ test for stddevice
This commit is contained in:
parent
4a4d880a9f
commit
c9985334cb
@ -254,22 +254,6 @@ TEST(pikaMain, err_scop) {
|
|||||||
EXPECT_EQ(pikaMemNow(), 0);
|
EXPECT_EQ(pikaMemNow(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(pikaMain, __init__) {
|
|
||||||
/* init */
|
|
||||||
pikaMemInfo.heapUsedMax = 0;
|
|
||||||
PikaObj* pikaMain = newRootObj((char*)"pikaMain", New_PikaMain);
|
|
||||||
/* run */
|
|
||||||
obj_run(pikaMain, (char*)"pin = PikaStdDevice.GPIO()\n");
|
|
||||||
/* collect */
|
|
||||||
char* a = obj_getStr(pikaMain, (char*)"pin.pin");
|
|
||||||
/* assert */
|
|
||||||
EXPECT_STREQ(a, "PA0");
|
|
||||||
|
|
||||||
/* deinit */
|
|
||||||
obj_deinit(pikaMain);
|
|
||||||
EXPECT_EQ(pikaMemNow(), 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST(pikaMain, PikaStdData) {
|
TEST(pikaMain, PikaStdData) {
|
||||||
/* init */
|
/* init */
|
||||||
pikaMemInfo.heapUsedMax = 0;
|
pikaMemInfo.heapUsedMax = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user