[python] Test: add all template scripts

This commit is contained in:
Émilie Feral
2020-04-01 14:20:41 +02:00
committed by LeaNumworks
parent 11dc259566
commit ffb8f8f953
5 changed files with 20 additions and 24 deletions

13
python/test/basics.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include <quiz.h>
#include "execution_environment.h"
QUIZ_CASE(python_basics) {
assert_command_execution_succeeds("2+3","5\n");
}
QUIZ_CASE(python_template) {
assert_script_execution_succeeds(Code::ScriptTemplate::Squares()->content());
assert_script_execution_succeeds(Code::ScriptTemplate::Mandelbrot()->content());
assert_script_execution_succeeds(Code::ScriptTemplate::Polynomial()->content());
assert_script_execution_succeeds(Code::ScriptTemplate::Parabola()->content());
}