示例#1
0
def test_increment_int():
    '''Making sure increment works for positive numbers'''
    x0 = 0
    y0 = ld.increment(x0)  # 1
    assert y0 == 1

    x1 = 100
    y1 = ld.increment(x1)  # 101
    assert y1 == 101
示例#2
0
def test_increment_int():
    """Making sure increment works on integers"""
    x0 = 0
    y0 = ld.increment(x0)   # return 1
    assert y0 == 1

    x1 = 100
    y1 = ld.increment(x1)   # return 101
    assert y1 == 101
示例#3
0
def test_incrament_int():
    """Making sure increment works for positive int"""
    x0 = 0
    y0 = ld.increment(x0)
    assert y0 == 1

    x1 = 100
    y1 = ld.increment(x1)
    assert y1 == 101
示例#4
0
def test_increment_neg_float():
    x0 = -2.5
    y0 = ld.increment(x0)  # -1.5
    assert yp == -1.5
示例#5
0
def test_increment_neg_int():
    x0 = -2
    y0 = ld.increment(x0)  # -1
    assert y0 == -1
示例#6
0
def test_increment_float():
    x0 = 10.5
    y0 = ld.increment(x0)  # 11.5
    assert y0 == 11.5
示例#7
0
def test_increment_int():
    x0 = 0
    y0 = ld.increment(x0)  # 1
    assert y0 == 1
示例#8
0
def test_increment_neg_float():
    '''Making sure increment works for negative floats'''
    x0 = -1.5
    y0 = ld.increment(x0)  # -0.5
    assert y0 == -0.5
示例#9
0
def test_incrament_float():
    """Making sure increment works for positive floats"""
    x0 = 10.5
    y0 = ld.increment(x0)
    assert y0 == 11.5
示例#10
0
def test_increment_float():
    '''Making sure increment works for floats'''
    x0 = 10.5
    y0 = ld.increment(x0)  # 11.5
    assert y0 == 11.5
示例#11
0
def test_increment_neg_float():
    """Making sure increment works on negative floats"""
    x0 = -1.5
    y0 = ld.increment(x0)   # return -0.5
    assert y0 == -0.5
示例#12
0
def test_increment_neg_int():
    """Making sure increment works on negative integers"""
    x0 = -1
    y0 = ld.increment(x0)   # return 0
    assert y0 == 0
示例#13
0
def test_increment_float():
    """Making sure increment works on floats"""
    x0 = 10.5
    y0 = ld.increment(x0)    # return 11.5
    assert y0 == 11.5
示例#14
0
def test_incrament_neg_float():
    """Making sure increment works for neg floats"""
    x0 = -1.5
    y0 = ld.increment(x0)
    assert y0 == -0.5
示例#15
0
def test_increment_float():
    """Making sure increment works for Floats"""
    x = 10.4
    y = ld.increment(x)
    assert y == 11.4
示例#16
0
def test_increment_neg():
    '''Making sure increment works for negative numbers'''
    x0 = -1
    y0 = ld.increment(x0)  # 0
    assert y0 == 0
示例#17
0
def test_increment_int():
    """Making sure increment works for Integers"""
    x = 0
    y = ld.increment(x)
    assert y == 1
示例#18
0
def test_incrament_neg_int():
    """Making sure increment works for neg int"""
    x0 = -1
    y0 = ld.increment(x0)
    assert y0 == 0