Exemple #1
0
def test_seki_02():
    assert Calc(-9, 2).seki() == -18
Exemple #2
0
def test_shou_01():
    assert Calc(9, 2).shou() == 4.5
Exemple #3
0
def test_dif_02():
    assert Calc(-9, 2).dif() == -11
Exemple #4
0
def test_seki_01():
    assert Calc(9, 2).seki() == 18
Exemple #5
0
def test_add_02():
    assert Calc(-9, 2).add() == -7
Exemple #6
0
def test_dif_01():
    assert Calc(9, 2).dif() == 7
Exemple #7
0
def test_multiple_01():
    assert Calc(9, 2).multiple() == 18
Exemple #8
0
def test_sub_01():
    assert Calc(9, 2).sub() == 7
Exemple #9
0
def test_divide_02():
    assert Calc(-9, 2).divide() == -4.5
Exemple #10
0
def test_multiple_04():
    assert Calc(9, 2).multiple() == 18   # expect assert 
Exemple #11
0
def test_divide_01():
    assert Calc(9, 2).divide() == 4.5
Exemple #12
0
def test_multiple_03():
    assert Calc(-9, -2).multiple() == -18  # expect assert
Exemple #13
0
def test_sub_02():
    assert Calc(-9, 2).sub() == -11
Exemple #14
0
def test_shou_02():
    assert Calc(-9, 2).shou() == -4.5
Exemple #15
0
def test_multiple_02():
    assert Calc(9, 2).multiple() == -18
Exemple #16
0
def test_add_01():
    assert Calc(9, 2).add() == 11
Exemple #17
0
 def test_01(self, x, y, expect):
     assert Calc(x, y).add() == expect