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