Exemplo n.º 1
0
def sexto_teste():
    try:
        retorno = numero_perfeito.eh_perfeito(-6)
        assert retorno is False
        print("Sexto Teste Correto")
    except AssertionError:
        print("Sexto Teste com Erro")
Exemplo n.º 2
0
def terceiro_teste():
    try:
        retorno = numero_perfeito.eh_perfeito(100)
        assert retorno is False
        print("Terceiro Teste Correto")
    except AssertionError:
        print("Terceiro Teste com Erro")
Exemplo n.º 3
0
def primeiro_teste():
    try:
        retorno = numero_perfeito.eh_perfeito(6)
        assert retorno is True
        print("Primeiro Teste Correto")
    except AssertionError:
        print("Primeiro Teste com Erro")
Exemplo n.º 4
0
def segundo_teste():
    try:
        retorno = numero_perfeito.eh_perfeito(8128)
        assert retorno is True
        print("Segundo Teste Correto")
    except AssertionError:
        print("Segundo Teste com Erro")