Browse Source

tests: add tests for BitMask*.is_all_on()

rdb 7 years ago
parent
commit
4f55e26e61
1 changed files with 10 additions and 0 deletions
  1. 10 0
      tests/putil/test_bitmask.py

+ 10 - 0
tests/putil/test_bitmask.py

@@ -0,0 +1,10 @@
+from panda3d import core
+
+
+def test_bitmask_allon():
+    assert core.BitMask16.all_on().is_all_on()
+    assert core.BitMask32.all_on().is_all_on()
+    assert core.BitMask64.all_on().is_all_on()
+    assert core.DoubleBitMaskNative.all_on().is_all_on()
+    assert core.QuadBitMaskNative.all_on().is_all_on()
+    assert core.BitArray.all_on().is_all_on()