Пример #1
0
def test_5():
    assert m.from_string('2**3 - 1') == 7
Пример #2
0
def test_3():
    assert 4 == m.from_string('2*2')
Пример #3
0
def test_4():
    assert m.from_string('1+(4/2)') == 3
Пример #4
0
def test_1():
    r = m.from_string('2+3')
    assert 5 == r