mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Add tests for each module
This commit is contained in:
committed by
LeaNumworks
parent
ec5803f06f
commit
cdff61f64b
12
python/test/time.cpp
Normal file
12
python/test/time.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <quiz.h>
|
||||
#include "execution_environment.h"
|
||||
|
||||
QUIZ_CASE(python_time) {
|
||||
TestExecutionEnvironment env = init_environement();
|
||||
assert_command_execution_fails(env, "monotonic()");
|
||||
assert_command_execution_succeeds(env, "from time import *");
|
||||
assert_command_execution_succeeds(env, "monotonic()");
|
||||
assert_command_execution_succeeds(env, "sleep(23)");
|
||||
deinit_environment();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user