예제 #1
0
def test_one_str():
    assert str(junc.one('hello', 'world')) == "one('hello', 'world')"
예제 #2
0
def test_one_eq_none():
    assert junc.one(1, 2) == junc.none(3)
예제 #3
0
def test_one_ne_none():
    assert junc.one(1, 2) != junc.none(1, 2)
예제 #4
0
def test_one_eq_all():
    assert junc.one(1, 2) == junc.all(1, 2)
예제 #5
0
def test_one_ne_all():
    assert junc.one(1, 2) != junc.all(1, 3)
예제 #6
0
def test_one_eq_any():
    assert junc.one(1, 2) == junc.any(1, 3)
예제 #7
0
def test_one_ne_any():
    assert junc.one(1, 2) != junc.any(1, 2)
예제 #8
0
def test_one_eq_one():
    assert junc.one(1, 2) == junc.one(1, 3)
예제 #9
0
def test_one_repr():
    assert repr(junc.one('hello', 'world')) == "one('hello', 'world')"
예제 #10
0
def test_one_False():
    assert not junc.one(True, True, True)
예제 #11
0
def test_one_True():
    assert junc.one(False, True, False)
예제 #12
0
def test_one_empty():
    assert not junc.one()
예제 #13
0
def test_single_one_gt():
    assert junc.one(1,2,3) > 2
예제 #14
0
def test_any_ne_one():
    assert junc.any(1, 2) != junc.one(3, 4)