Exemplo n.º 1
0
def test_objects_boolean_false():
    tree = Tree('boolean', [Token('FALSE', 'false')])
    assert Objects.boolean(tree) == {'$OBJECT': 'boolean', 'boolean': False}
Exemplo n.º 2
0
def test_objects_boolean_false():
    tree = Tree("boolean", [Token("FALSE", "false")])
    assert Objects.boolean(tree) == {"$OBJECT": "boolean", "boolean": False}
Exemplo n.º 3
0
def test_objects_boolean():
    tree = Tree('boolean', [Token('TRUE', 'true')])
    assert Objects.boolean(tree) == {'$OBJECT': 'boolean', 'boolean': True}
Exemplo n.º 4
0
def test_objects_boolean():
    tree = Tree("boolean", [Token("TRUE", "true")])
    assert Objects.boolean(tree) == {"$OBJECT": "boolean", "boolean": True}