Ejemplo n.º 1
0
def test_is_number_with_parenthesis():
    assert is_number('((42:666))')
Ejemplo n.º 2
0
def test_is_number_with_angle():
    assert is_number('<<1:23>>')
Ejemplo n.º 3
0
def test_is_number_with_curly():
    assert is_number('{{42:666}}')
Ejemplo n.º 4
0
def test_isnt_a_number_with_string():
    assert not is_number('A String')
Ejemplo n.º 5
0
def test_is_number_with_angle():
    assert is_number('<<1:23>>')
Ejemplo n.º 6
0
def test_is_number_with_angle_and_float():
    assert is_number('<<0.1:0.2:0.01>>')
Ejemplo n.º 7
0
def test_is_number_with_parenthesis_and_floats():
    assert is_number('((-43.0:777.25637189:3.1415))')
Ejemplo n.º 8
0
def test_is_number_with_curly_and_floats():
    assert is_number('{{-0.0:666.666:42.03}}')
Ejemplo n.º 9
0
def test_is_number_with_parenthesis_and_floats():
    assert is_number('((-43.0:777.25637189:3.1415))')
Ejemplo n.º 10
0
def test_is_number_with_float():
    assert is_number('666.666')
Ejemplo n.º 11
0
def test_is_number_with_angle_and_float():
    assert is_number('<<0.1:0.2:0.01>>')
Ejemplo n.º 12
0
def test_is_number_with_square():
    assert is_number('[[42, 666]]')
Ejemplo n.º 13
0
def test_is_number_with_parenthesis():
    assert is_number('((42:666))')
Ejemplo n.º 14
0
def test_is_number_with_curly():
    assert is_number('{{42:666}}')
Ejemplo n.º 15
0
def test_is_number_with_square():
    assert is_number('[[42, 666]]')
Ejemplo n.º 16
0
def test_is_number_with_square_and_floats():
    assert is_number('[[42,0, 666, 77.97298103, 3.141592653]]')
Ejemplo n.º 17
0
def test_is_number_with_float():
    assert is_number('666.666')
Ejemplo n.º 18
0
def test_isnt_a_number_with_string():
    assert not is_number('A String')
Ejemplo n.º 19
0
def test_is_number_with_curly_and_floats():
    assert is_number('{{-0.0:666.666:42.03}}')
Ejemplo n.º 20
0
def test_isnt_a_number_with_square():
    assert not is_number('[[42, 666, String]]')
Ejemplo n.º 21
0
def test_is_number_with_square_and_floats():
    assert is_number('[[42,0, 666, 77.97298103, 3.141592653]]')
Ejemplo n.º 22
0
def test_is_number_with_a_number():
    assert is_number('42')
Ejemplo n.º 23
0
def test_isnt_a_number_with_square():
    assert not is_number('[[42, 666, String]]')
Ejemplo n.º 24
0
def test_is_number_with_a_number():
    assert is_number('42')