コード例 #1
0
ファイル: test_one.py プロジェクト: atpalmer-python/rakujunc
def test_one_eq_none():
    assert junc.one(1, 2) == junc.none(3)
コード例 #2
0
ファイル: test_one.py プロジェクト: atpalmer-python/rakujunc
def test_one_ne_none():
    assert junc.one(1, 2) != junc.none(1, 2)
コード例 #3
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_str():
    assert str(junc.none('hello', 'world')) == "none('hello', 'world')"
コード例 #4
0
def test_any_mod():
    target = junc.any(5,6,7) % 3
    assert target == junc.all(0,1,2)
    assert target == junc.none(-1,3)
コード例 #5
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_eq_all():
    assert junc.none(1, 2) == junc.all(3, 4)
コード例 #6
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_ne_all():
    assert junc.none(1) != junc.all(1)
コード例 #7
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_eq_any():
    assert junc.none(1, 2) == junc.any(3, 4)
コード例 #8
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_ne_any():
    assert junc.none(1, 2) != junc.any(1, 2)
コード例 #9
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_repr():
    assert repr(junc.none('hello', 'world')) == "none('hello', 'world')"
コード例 #10
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_False():
    assert not junc.none(False, False, True)
コード例 #11
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_True():
    assert junc.none(False, False, False)
コード例 #12
0
ファイル: test_none.py プロジェクト: atpalmer-python/rakujunc
def test_none_empty():
    assert junc.none()
コード例 #13
0
ファイル: test_any.py プロジェクト: atpalmer-python/rakujunc
def test_any_eq_none():
    assert junc.any(1, 2) == junc.none(3, 4)