コード例 #1
0
ファイル: test_sigmaalgebra.py プロジェクト: skinnersrat/dit
def test_atom_set5():
    """
    Test failure.
    """
    with pytest.raises(Exception):
        atom_set('pants')
コード例 #2
0
ファイル: test_sigmaalgebra.py プロジェクト: skinnersrat/dit
def test_atom_set2():
    """
    Find the atoms.
    """
    atoms = atom_set(not_sa1, method=1)
    assert atoms == frozenset([frozenset('c'), frozenset('b')])
コード例 #3
0
ファイル: test_sigmaalgebra.py プロジェクト: skinnersrat/dit
def test_atom_set4():
    """
    Find the atoms.
    """
    atoms = atom_set(sa, method=1)
    assert atoms == frozenset([frozenset('a'), frozenset('b'), frozenset('c')])
コード例 #4
0
ファイル: test_sigmaalgebra.py プロジェクト: skinnersrat/dit
def test_atom_set1():
    """
    Find the atoms.
    """
    atoms = atom_set(sa)
    assert atoms == frozenset([frozenset('a'), frozenset('b'), frozenset('c')])
コード例 #5
0
ファイル: test_sigmaalgebra.py プロジェクト: Autoplectic/dit
def test_atom_set5():
    """
    Test failure.
    """
    with pytest.raises(Exception):
        atom_set('pants')
コード例 #6
0
ファイル: test_sigmaalgebra.py プロジェクト: Autoplectic/dit
def test_atom_set4():
    """
    Find the atoms.
    """
    atoms = atom_set(sa, method=1)
    assert atoms == frozenset([frozenset('a'), frozenset('b'), frozenset('c')])
コード例 #7
0
ファイル: test_sigmaalgebra.py プロジェクト: Autoplectic/dit
def test_atom_set2():
    """
    Find the atoms.
    """
    atoms = atom_set(not_sa1, method=1)
    assert atoms == frozenset([frozenset('c'), frozenset('b')])
コード例 #8
0
ファイル: test_sigmaalgebra.py プロジェクト: Autoplectic/dit
def test_atom_set1():
    """
    Find the atoms.
    """
    atoms = atom_set(sa)
    assert atoms == frozenset([frozenset('a'), frozenset('b'), frozenset('c')])