mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
12 lines
394 B
C++
12 lines
394 B
C++
#include <quiz.h>
|
|
#include "execution_environment.h"
|
|
|
|
QUIZ_CASE(python_random) {
|
|
TestExecutionEnvironment env = init_environnement();
|
|
assert_command_execution_fails(env, "random()");
|
|
assert_command_execution_succeeds(env, "from random import *");
|
|
assert_command_execution_succeeds(env, "random()");
|
|
assert_command_execution_succeeds(env, "getrandbits(23)");
|
|
deinit_environment();
|
|
}
|