pikapython/port/linux/test/pikaMain-test.cpp
2021-10-18 21:34:47 +08:00

12 lines
277 B
C

#include "gtest/gtest.h"
extern "C" {
#include "dataMemory.h"
#include "pikaScript.h"
}
extern PikaMemInfo pikaMemInfo;
TEST(pikaMain, init) {
pikaMemInfo.heapUsedMax = 0;
PikaObj* pikaMain = pikaScriptInit();
obj_deinit(pikaMain);
EXPECT_EQ(pikaMemNow(), 0);
}