pikapython/port/linux/test/VM-test.cpp

17 lines
367 B
C
Raw Normal View History

2021-10-14 15:52:01 +08:00
#include "gtest/gtest.h"
extern "C" {
#include "BaseObj.h"
#include "PikaParser.h"
#include "PikaVM.h"
#include "dataMemory.h"
#include "dataStrs.h"
}
TEST(VM, a_1) {
char* line = (char*)"a = 1";
Args* buffs = New_strBuff();
char* pikaAsm = pikaParseToAsm(buffs, line);
printf("%s", pikaAsm);
args_deinit(buffs);
EXPECT_EQ(pikaMemNow(), 0);
}