[python] Add matplotlib test WIP

This commit is contained in:
Émilie Feral
2020-04-01 11:32:21 +02:00
committed by LeaNumworks
parent 11ac25e935
commit 2f171eb2fd
5 changed files with 175 additions and 49 deletions

View 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);