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