$55 GRAYBYTE WORDPRESS FILE MANAGER $63

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 88.222.243.164 | ADMIN IP 216.73.216.143
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/test/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/test//test_UniSet.py
from guppy.heapy.test import support


class FirstCase(support.TestCase):
    def setUp(self):
        support.TestCase.setUp(self)

    def test_1(self):
        asrt = self.assertTrue
        a = []
        b = []
        c = self.iso(a, b)
        asrt(len(c.nodes) == 2)
        asrt(a in c)
        asrt(b in c)
        asrt([] not in c)
        asrt(c not in c)

        d = self.idset(c.nodes)

        asrt(c.nodes == d.nodes)

        asrt(c == d)

    def test_2(self):
        # Test standard set operations
        H = self.idset
        e1 = []
        e2 = {}
        e3 = ()
        la = [], [e1], [e1, e2], [e1, e2, e3], [e2], [e2, e3], [e3]
        self.guppy.sets.test.test_set_operations(
            [H(x) for x in la], [H(x) for x in la], [H(x) for x in la])

    def test_3(self):
        # Test out-reaching

        iso = self.iso

        a = []
        b = [a]
        c = [b]
        self.View.root = c

        x = iso(b)

        self.assertTrue(x.referrers == iso(c))
        self.aseq(x.referents,  iso(a))
        self.aseq(x.referents.referrers,  x)
        self.aseq(x.dominos, iso(a, b))


def test_main(debug=False):
    support.run_unittest(FirstCase, debug)


if __name__ == "__main__":
    test_main()

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jan 2024 4.26 PM
root / 996
0755
__pycache__
--
25 Jan 2024 4.26 PM
root / 996
0755
__init__.py
0.046 KB
21 Nov 2019 9.31 PM
root / 996
0644
support.py
3.145 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_Classifiers.py
27.91 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_ER.py
10.173 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_OutputHandling.py
1.433 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_Part.py
4.378 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_Path.py
27.946 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_RefPat.py
16.593 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_RetaGraph.py
0.093 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_Spec.py
0.343 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_UniSet.py
1.212 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_View.py
7.988 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_all.py
0.666 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_dependencies.py
0.209 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_gsl.py
0.411 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_heapyc.py
15.598 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_menuleak.py
3.121 KB
21 Nov 2019 9.31 PM
root / 996
0644
test_sf.py
0.569 KB
21 Nov 2019 9.31 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF