pikapython/test/PikaNN-test.cpp

30 lines
577 B
C
Raw Normal View History

#include "test_common.h"
TEST_START
2022-10-02 00:00:53 +08:00
#if (PIKA_SYNTAX_LEVEL == PIKA_SYNTAX_LEVEL_MAXIMAL) && (!PIKA_POOL_ENABLE)
2022-09-08 22:20:06 +08:00
TEST(PikaNN, test1) {
/* init */
pikaMemInfo.heapUsedMax = 0;
PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain);
/* run */
__platform_printf("BEGIN\r\n");
pikaVM_runSingleFile(pikaMain, "test/python/PikaNN/PikaNN_test1.py");
/* collect */
/* assert */
/* deinit */
obj_deinit(pikaMain);
EXPECT_EQ(pikaMemNow(), 0);
}
2022-09-08 22:20:06 +08:00
extern "C" {
void _lm_test(void);
}
TEST(PikaNN, test_) {
_lm_test();
}
#endif
TEST_END