예제 #1
0
def test_all_edges_equal():
    assert is_valid_triangle(a=6, b=6, c=6) == True
예제 #2
0
def test_two_edges_equal():
    assert is_valid_triangle(a=6, b=6, c=10) == True
예제 #3
0
def test_first_edge_longer():
    assert is_valid_triangle(a=11, b=5, c=5) == False
예제 #4
0
def test_inequal_triangle():
    assert is_valid_triangle(a=11, b=5, c=6) == True
예제 #5
0
def test_second_edge_longer():
    assert is_valid_triangle(a=5, b=11, c=5) == False
예제 #6
0
def test_third_edge_longer():
    assert is_valid_triangle(a=5, b=5, c=11) == False
예제 #7
0
def test_all_edges_different_first_edge_longer():
    assert is_valid_triangle(a=10, b=7, c=5) == True
예제 #8
0
def test_all_edges_different_second_edge_longer():
    assert is_valid_triangle(a=7, b=10, c=5) == True
예제 #9
0
def test_all_edges_different():
    assert is_valid_triangle(a=5, b=7, c=10) == True