mirror of
https://github.com/panda3d/panda3d.git
synced 2026-01-29 02:39:31 -06:00
27 lines
597 B
Python
27 lines
597 B
Python
from panda3d import core
|
|
|
|
|
|
def test_rendereffects_compare():
|
|
re1 = core.RenderEffects.make_empty()
|
|
re2 = core.RenderEffects.make_empty()
|
|
|
|
assert re1 == re1
|
|
assert not (re1 != re1)
|
|
assert not (re1 < re1)
|
|
assert not (re1 > re1)
|
|
|
|
assert re1 == re2
|
|
assert not (re1 != re2)
|
|
assert not (re1 < re2)
|
|
assert not (re1 > re2)
|
|
|
|
assert re1 != 123
|
|
|
|
rd = core.RenderEffects.make(core.DecalEffect.make())
|
|
assert not (re1 == rd)
|
|
assert not (rd == re1)
|
|
assert re1 != rd
|
|
assert rd != re1
|
|
assert re1 < rd or rd < re1
|
|
assert re1 > rd or rd > re1
|