mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
20 lines
597 B
C++
20 lines
597 B
C++
#include <quiz.h>
|
|
#include "execution_environment.h"
|
|
|
|
QUIZ_CASE(python_math) {
|
|
TestExecutionEnvironment env = init_environnement();
|
|
assert_command_execution_succeeds(env, "from math import *");
|
|
assert_command_execution_succeeds(env, "e", "2.718281828459045\n");
|
|
assert_command_execution_succeeds(env, "gamma(3)", "2.0\n");
|
|
deinit_environment();
|
|
}
|
|
|
|
QUIZ_CASE(python_cmath) {
|
|
TestExecutionEnvironment env = init_environnement();
|
|
assert_command_execution_succeeds(env, "from cmath import *");
|
|
assert_command_execution_succeeds(env, "cos(0)", "(1+-0j)\n");
|
|
deinit_environment();
|
|
}
|
|
|
|
|