Exemple #1
0
def test_const_not_eq():
    assert const.Const(0) != 0
Exemple #2
0
def test_const_descriptive_repr():
    obj = object()
    assert repr(obj) in repr(const.Const(obj))
Exemple #3
0
def test_const_eq():
    obj = object()
    assert const.Const(obj) == const.Const(obj)
Exemple #4
0
def test_const_pure():
    assert const.Const([1, 2]).pure([1, 2, 3]) == const.Const([])
    assert const.Const((1, 2)).pure((1, 2, 3)) == const.Const(())