mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Add matplotlib test WIP
This commit is contained in:
committed by
LeaNumworks
parent
11ac25e935
commit
2f171eb2fd
15
python/test/execution_environment.h
Normal file
15
python/test/execution_environment.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <python/port/port.h>
|
||||
#include <apps/code/app.h>
|
||||
|
||||
class TestExecutionEnvironment : public MicroPython::ExecutionEnvironment {
|
||||
public:
|
||||
void printText(const char * text, size_t length) override;
|
||||
static constexpr int s_pythonHeapSize = Code::App::k_pythonHeapSize;
|
||||
static char s_pythonHeap[s_pythonHeapSize];
|
||||
};
|
||||
|
||||
|
||||
// TODO: this will be obsolete when runCode will take a parameter to choose the input type
|
||||
void inlineToBeSingleInput(char * buffer, size_t bufferSize, const char * script);
|
||||
|
||||
void assert_script_execution_succeeds(const char * script);
|
||||
Reference in New Issue
Block a user