mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
30 lines
433 B
Python
30 lines
433 B
Python
try:
|
|
import os
|
|
except ImportError:
|
|
exit(0)
|
|
|
|
import test1
|
|
|
|
assert test1.add(1, 2) == 13
|
|
|
|
from test2.a.g import get_value
|
|
assert get_value() == '123'
|
|
|
|
import test2
|
|
assert test2.a.g.get_value() == '123'
|
|
|
|
from test2.utils import get_value_2
|
|
assert get_value_2() == '123'
|
|
|
|
from test3.a.b import value
|
|
assert value == 1
|
|
|
|
def f():
|
|
import math as m
|
|
assert m.pi > 3
|
|
|
|
from test3.a.b import value
|
|
assert value == 1
|
|
|
|
f()
|