示例#1
0
def test_chars():
    """

    :return:
    """
    assert parse_float.parse("12abc235") == False
示例#2
0
def test_minuses():
    """

    :return:
    """
    assert parse_float.parse("-12.-23") == False
示例#3
0
def test_empty():
    """

    :return:
    """
    assert parse_float.parse("") == False
示例#4
0
def test_neg_float():
    """

    :return:
    """
    assert parse_float.parse("-12.43") == True
示例#5
0
def test_double_dots():
    """

    :return:
    """
    assert parse_float.parse("1.2.3") == False
示例#6
0
def test_negative():
    """

    :return:
    """
    assert parse_float.parse("-123") == True
示例#7
0
def test_float():
    """

    :return:
    """
    assert parse_float.parse("12.34") == True
def test_int():
    assert parse_float.parse("123") == True
示例#9
0
def test_int():
    """

    :return:
    """
    assert parse_float.parse("123") == True
示例#10
0
def test_empty():
    assert parse_float.parse("") == False
示例#11
0
def test_chars():
    assert parse_float.parse("12abc235") == False
示例#12
0
def test_minuses():
    assert parse_float.parse("-12.-23") == False
示例#13
0
def test_double_dots():
    assert parse_float.parse("1.2.3") == False
示例#14
0
def test_neg_float():
    assert parse_float.parse("-12.43") == True
示例#15
0
def test_float():
    assert parse_float.parse("12.34") == True
示例#16
0
def test_negative():
    assert parse_float.parse("-123") == True