Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 4
0
def test_increment_neg_float():
    x0 = -2.5
    y0 = ld.increment(x0)  # -1.5
    assert yp == -1.5
Ejemplo n.º 5
0
def test_increment_neg_int():
    x0 = -2
    y0 = ld.increment(x0)  # -1
    assert y0 == -1
Ejemplo n.º 6
0
def test_increment_float():
    x0 = 10.5
    y0 = ld.increment(x0)  # 11.5
    assert y0 == 11.5
Ejemplo n.º 7
0
def test_increment_int():
    x0 = 0
    y0 = ld.increment(x0)  # 1
    assert y0 == 1
Ejemplo n.º 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
Ejemplo n.º 9
0
def test_incrament_float():
    """Making sure increment works for positive floats"""
    x0 = 10.5
    y0 = ld.increment(x0)
    assert y0 == 11.5
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 15
0
def test_increment_float():
    """Making sure increment works for Floats"""
    x = 10.4
    y = ld.increment(x)
    assert y == 11.4
Ejemplo n.º 16
0
def test_increment_neg():
    '''Making sure increment works for negative numbers'''
    x0 = -1
    y0 = ld.increment(x0)  # 0
    assert y0 == 0
Ejemplo n.º 17
0
def test_increment_int():
    """Making sure increment works for Integers"""
    x = 0
    y = ld.increment(x)
    assert y == 1
Ejemplo n.º 18
0
def test_incrament_neg_int():
    """Making sure increment works for neg int"""
    x0 = -1
    y0 = ld.increment(x0)
    assert y0 == 0