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