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')
Example #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))')
Example #8
0
def test_is_number_with_curly_and_floats():
    assert is_number('{{-0.0:666.666:42.03}}')
Example #9
0
def test_is_number_with_parenthesis_and_floats():
    assert is_number('((-43.0:777.25637189:3.1415))')
Example #10
0
def test_is_number_with_float():
    assert is_number('666.666')
Example #11
0
def test_is_number_with_angle_and_float():
    assert is_number('<<0.1:0.2:0.01>>')
Example #12
0
def test_is_number_with_square():
    assert is_number('[[42, 666]]')
Example #13
0
def test_is_number_with_parenthesis():
    assert is_number('((42:666))')
Example #14
0
def test_is_number_with_curly():
    assert is_number('{{42:666}}')
def test_is_number_with_square():
    assert is_number('[[42, 666]]')
Example #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')
Example #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}}')
Example #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]]')
Example #24
0
def test_is_number_with_a_number():
    assert is_number('42')