mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add cJSON-test.cpp
This commit is contained in:
parent
b0bb4e15d0
commit
b016924634
@ -6,4 +6,4 @@ import json
|
||||
class cJSON(TinyObj):
|
||||
def __init__(self): ...
|
||||
def print(self) -> str: ...
|
||||
def parse(self, val: str) -> any: ...
|
||||
def parse(self, value: str) -> any: ...
|
||||
|
@ -1,8 +1,9 @@
|
||||
#include "cJSON_cJSON.h"
|
||||
#include "cJSON.h"
|
||||
|
||||
void cJSON_cJSON___init__(PikaObj* self) {}
|
||||
Arg* cJSON_cJSON_parse(PikaObj* self, char* val) {
|
||||
return NULL;
|
||||
Arg* cJSON_cJSON_parse(PikaObj* self, char* value) {
|
||||
cJSON* cJSON_struct = cJSON_Parse(value);
|
||||
}
|
||||
char* cJSON_cJSON_print(PikaObj* self) {
|
||||
return NULL;
|
||||
|
15
port/linux/test/cJSON-test.cpp
Normal file
15
port/linux/test/cJSON-test.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "test_common.h"
|
||||
extern "C" {
|
||||
#include "PikaMain.h"
|
||||
#include "PikaParser.h"
|
||||
#include "PikaStdLib_MemChecker.h"
|
||||
#include "PikaVM.h"
|
||||
#include "dataArgs.h"
|
||||
#include "dataMemory.h"
|
||||
#include "dataStrs.h"
|
||||
#include "pikaScript.h"
|
||||
#include "pika_config_gtest.h"
|
||||
}
|
||||
|
||||
extern PikaMemInfo pikaMemInfo;
|
Loading…
x
Reference in New Issue
Block a user