cancel __init__ test for stddevice

This commit is contained in:
lyon1998 2022-03-20 08:53:08 +08:00
parent 4a4d880a9f
commit c9985334cb

View File

@ -254,22 +254,6 @@ TEST(pikaMain, err_scop) {
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) {
/* init */
pikaMemInfo.heapUsedMax = 0;