Example #1
0
def test_multi():
    assert myeval("15*5") == 75
Example #2
0
def test_only_number():
    assert myeval("1") == 1
    assert myeval("2") == 2
Example #3
0
def test_bitwise_and():
    assert myeval("15&5") == 5
Example #4
0
def test_bitwise_or():
    assert myeval("15|5") == 15
Example #5
0
def test_add():
    assert myeval("15+5") == 20