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