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