$18 GRAYBYTE WORDPRESS FILE MANAGER $94

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/heapy/test/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/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
..
--
14 Aug 2025 9.24 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
0.046 KB
17 Apr 2025 8.10 PM
root / root
0644
support.py
3.725 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Classifiers.py
28.378 KB
17 Apr 2025 8.10 PM
root / root
0644
test_ER.py
12.557 KB
17 Apr 2025 8.10 PM
root / root
0644
test_OutputHandling.py
1.344 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Part.py
10.154 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Path.py
28.824 KB
17 Apr 2025 8.10 PM
root / root
0644
test_RefPat.py
16.754 KB
17 Apr 2025 8.10 PM
root / root
0644
test_RetaGraph.py
0.093 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Spec.py
0.343 KB
17 Apr 2025 8.10 PM
root / root
0644
test_UniSet.py
1.212 KB
17 Apr 2025 8.10 PM
root / root
0644
test_View.py
7.988 KB
17 Apr 2025 8.10 PM
root / root
0644
test_all.py
0.666 KB
17 Apr 2025 8.10 PM
root / root
0644
test_dependencies.py
0.209 KB
17 Apr 2025 8.10 PM
root / root
0644
test_gsl.py
0.411 KB
17 Apr 2025 8.10 PM
root / root
0644
test_heapyc.py
15.598 KB
17 Apr 2025 8.10 PM
root / root
0644
test_menuleak.py
3.121 KB
17 Apr 2025 8.10 PM
root / root
0644
test_sf.py
0.569 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF