コード例 #1
0
def test_example_1():
    assert calculateDistance(4, 6, 1, 6) == 3
コード例 #2
0
def test_example_5():
    assert calculateDistance(
        -100000000000000000, 2, 4, 5
    ) == "One of your values is too small. x and y values must be >= -1000000000."
コード例 #3
0
def test_example_1():
    assert calculateDistance(4, 6, 1, 6) == 3
コード例 #4
0
def test_example_3():
    assert calculateDistance(
        5, 2, "str", 5
    ) == "One of your values is not numeric. x and y values must be either an integer or float."
コード例 #5
0
def test_example_4():
    assert calculateDistance(4.0, 6.0, 1.0, 6.0) == 3.0
コード例 #6
0
def test_example_2():
    assert calculateDistance(
        100000000000000000, 2, 4, 5
    ) == "One of your values is too large. x and y values must be <= 1000000000."
コード例 #7
0
def test_example_5():
    assert calculateDistance(-100000000000000000, 2, 4, 5) == "One of your values is too small. x and y values must be >= -1000000000."
コード例 #8
0
def test_example_4():
    assert calculateDistance(4.0, 6.0, 1.0, 6.0) == 3.0
コード例 #9
0
def test_example_3():
    assert calculateDistance(5, 2, "str", 5) == "One of your values is not numeric. x and y values must be either an integer or float."
コード例 #10
0
def test_example_2():
    assert calculateDistance(100000000000000000, 2, 4, 5) == "One of your values is too large. x and y values must be <= 1000000000."