mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
17 lines
367 B
C
17 lines
367 B
C
#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);
|
|
} |