Skip to content

Commit 5d0044a

Browse files
committed
tests: Add unit test for RenderEffects comparison
1 parent 5655e97 commit 5d0044a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/pgraph/test_rendereffects.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from panda3d import core
2+
3+
4+
def test_rendereffects_compare():
5+
re1 = core.RenderEffects.make_empty()
6+
re2 = core.RenderEffects.make_empty()
7+
8+
assert re1 == re1
9+
assert not (re1 != re1)
10+
assert not (re1 < re1)
11+
assert not (re1 > re1)
12+
13+
assert re1 == re2
14+
assert not (re1 != re2)
15+
assert not (re1 < re2)
16+
assert not (re1 > re2)
17+
18+
assert re1 != 123
19+
20+
rd = core.RenderEffects.make(core.DecalEffect.make())
21+
assert not (re1 == rd)
22+
assert not (rd == re1)
23+
assert re1 != rd
24+
assert rd != re1
25+
assert re1 < rd or rd < re1
26+
assert re1 > rd or rd > re1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy