Example #1
0
def test_scale1():
    "Test scale..."

    res = scale_values([1, 2, 3], num_lines=2)
    exp = [1., 8., 16.]
    assert res == exp
Example #2
0
def test_scale_pi():
    "Test scale Pi."

    res = scale_values([3, 1, 4, 1, 5, 9, 2, 6])
    exp = [3, 1, 4, 1, 4, 8, 2, 5]
    assert res == exp
Example #3
0
def test_scale0():
    "Test scale..."

    res = scale_values([1, 2, 3])
    exp = [1., 4., 8.]
    assert res == exp