From 4f55e26e6179e6fd399a54dc906ea3887f2e1c6c Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 30 May 2018 23:06:24 +0200 Subject: [PATCH] tests: add tests for BitMask*.is_all_on() --- tests/putil/test_bitmask.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/putil/test_bitmask.py diff --git a/tests/putil/test_bitmask.py b/tests/putil/test_bitmask.py new file mode 100644 index 0000000000..e87984cac1 --- /dev/null +++ b/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()