コード例 #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