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