Пример #1
0
def test_pos_0head_not():
    assert is_num("+001") == False
Пример #2
0
def test_operator_dot_not():
    assert is_num("+.") == False
Пример #3
0
def test_deci():
    assert is_num("3.14") == True
Пример #4
0
def test_multi_operator_not():
    assert is_num("+-5") == False
Пример #5
0
def test_dot_not():
    assert is_num(".") == False
Пример #6
0
def test_exp_not():
    assert is_num("12e") == False
Пример #7
0
def test_multi_dot_not():
    assert is_num("1.2.3") == False
Пример #8
0
def test_neg_deci():
    assert is_num("-1E-16") == True
Пример #9
0
def test_all0():
    assert is_num("00000") == True
Пример #10
0
def test_deci_exp():
    assert is_num("123.56e2") == True
Пример #11
0
def test_deci_exp_operator():
    assert is_num("1.79234234235235E+308") == True
Пример #12
0
def test_pos_exp():
    assert is_num("5e2") == True
Пример #13
0
def test_neg_dot():
    assert is_num("-.123") == True
Пример #14
0
def test_pos_dot():
    assert is_num("3.") == True
Пример #15
0
def test_neg_0head_not():
    assert is_num("-001") == False
Пример #16
0
def test_pos_all0():
    assert is_num("+0000") == True
Пример #17
0
def pos_operator_pos_not():
    assert is_num("1+2") == False
Пример #18
0
def test_pos():
    assert is_num("100") == True
Пример #19
0
def test_contain_letter_not():
    assert is_num("1a3.14") == False
Пример #20
0
def test_neg_all0():
    assert is_num("-0000") == True
Пример #21
0
def test_operator_pos():
    assert is_num("+100") == True
Пример #22
0
def test_pos_0head_deci():
    assert is_num("00001.1") == True
Пример #23
0
def test_deci_exp_not():
    assert is_num("12e+5.4") == False
Пример #24
0
def test_neg_0head_deci():
    assert is_num("-00001.") == True
Пример #25
0
def test_exp_pos_not():
    assert is_num("e1") == False
Пример #26
0
def test_0head_not():
    assert is_num("001") == False
Пример #27
0
def test_none():
    assert is_num("") == False
Пример #28
0
def test_neg():
    assert is_num("-123") == True