def test_is_number_with_parenthesis():
    assert is_number('((42:666))')
def test_is_number_with_angle():
    assert is_number('<<1:23>>')
def test_is_number_with_curly():
    assert is_number('{{42:666}}')
def test_isnt_a_number_with_string():
    assert not is_number('A String')
Beispiel #5
0
def test_is_number_with_angle():
    assert is_number('<<1:23>>')
def test_is_number_with_angle_and_float():
    assert is_number('<<0.1:0.2:0.01>>')
def test_is_number_with_parenthesis_and_floats():
    assert is_number('((-43.0:777.25637189:3.1415))')
Beispiel #8
0
def test_is_number_with_curly_and_floats():
    assert is_number('{{-0.0:666.666:42.03}}')
Beispiel #9
0
def test_is_number_with_parenthesis_and_floats():
    assert is_number('((-43.0:777.25637189:3.1415))')
Beispiel #10
0
def test_is_number_with_float():
    assert is_number('666.666')
Beispiel #11
0
def test_is_number_with_angle_and_float():
    assert is_number('<<0.1:0.2:0.01>>')
Beispiel #12
0
def test_is_number_with_square():
    assert is_number('[[42, 666]]')
Beispiel #13
0
def test_is_number_with_parenthesis():
    assert is_number('((42:666))')
Beispiel #14
0
def test_is_number_with_curly():
    assert is_number('{{42:666}}')
def test_is_number_with_square():
    assert is_number('[[42, 666]]')
Beispiel #16
0
def test_is_number_with_square_and_floats():
    assert is_number('[[42,0, 666, 77.97298103, 3.141592653]]')
def test_is_number_with_float():
    assert is_number('666.666')
Beispiel #18
0
def test_isnt_a_number_with_string():
    assert not is_number('A String')
def test_is_number_with_curly_and_floats():
    assert is_number('{{-0.0:666.666:42.03}}')
Beispiel #20
0
def test_isnt_a_number_with_square():
    assert not is_number('[[42, 666, String]]')
def test_is_number_with_square_and_floats():
    assert is_number('[[42,0, 666, 77.97298103, 3.141592653]]')
def test_is_number_with_a_number():
    assert is_number('42')
def test_isnt_a_number_with_square():
    assert not is_number('[[42, 666, String]]')
Beispiel #24
0
def test_is_number_with_a_number():
    assert is_number('42')