mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
tests: fix broken test case, add more WeakNodePath comparisons
This commit is contained in:
parent
ec04dbed0c
commit
ddc45e3529
@ -91,6 +91,14 @@ def test_weak_nodepath_comparison():
|
||||
assert weak == path
|
||||
assert weak <= path
|
||||
assert path <= weak
|
||||
assert weak >= path
|
||||
assert path >= weak
|
||||
assert not (path != weak)
|
||||
assert not (weak != path)
|
||||
assert not (weak > path)
|
||||
assert not (path > weak)
|
||||
assert not (weak < path)
|
||||
assert not (path < weak)
|
||||
|
||||
assert hash(path) == hash(weak)
|
||||
assert weak.get_node_path() == path
|
||||
|
@ -63,11 +63,11 @@ def test_updateseq_fresh():
|
||||
|
||||
old = UpdateSeq.old()
|
||||
assert not (seq == old)
|
||||
assert not (seq >= old)
|
||||
assert not (seq > old)
|
||||
assert not (seq <= old)
|
||||
assert not (seq < old)
|
||||
assert seq != old
|
||||
assert seq <= old
|
||||
assert seq < old
|
||||
assert seq >= old
|
||||
assert seq > old
|
||||
|
||||
|
||||
def test_updateseq_old():
|
||||
|
Loading…
x
Reference in New Issue
Block a user