예제 #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