mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Test: add all template scripts
This commit is contained in:
committed by
LeaNumworks
parent
11dc259566
commit
ffb8f8f953
13
python/test/basics.cpp
Normal file
13
python/test/basics.cpp
Normal 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());
|
||||
}
|
||||
Reference in New Issue
Block a user