예제 #1
0
def test_def_small_test_2():
    second_value = triangle1.def_small_test(12,12,5)
    assert second_value == 2
예제 #2
0
def test_def_small_test_1():
    one_value = triangle1.def_small_test(0,0,0)
    assert one_value == 4
예제 #3
0
def test_def_small_test_3():
    third_value = triangle1.def_small_test(8,25,18)
    assert third_value == 1
예제 #4
0
def test_def_small_test_4():
    fourth_value = triangle1.def_small_test(25,25,25)
    assert fourth_value == 3
예제 #5
0
print(
    "Нello! Please, enter trianlge sides length. It has to be integer number! Program will determine the triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error)"
)
a = input("Please, input first side length: ")
b = input("Please, input second side length: ")
c = input("Please, input third side length: ")

from main import triangle1

print(triangle1.def_small_test(a, b, c))