Exemple #1
0
def test_chars():
    """

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

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

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

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

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

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

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

    :return:
    """
    assert parse_float.parse("123") == True
def test_empty():
    assert parse_float.parse("") == False
def test_chars():
    assert parse_float.parse("12abc235") == False
def test_minuses():
    assert parse_float.parse("-12.-23") == False
def test_double_dots():
    assert parse_float.parse("1.2.3") == False
def test_neg_float():
    assert parse_float.parse("-12.43") == True
def test_float():
    assert parse_float.parse("12.34") == True
def test_negative():
    assert parse_float.parse("-123") == True