Sfoglia il codice sorgente

tests: ensure FrameBufferProperties has working copy constructor

rdb 7 anni fa
parent
commit
c1e5a71904
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      tests/display/test_fbprops.py

+ 6 - 0
tests/display/test_fbprops.py

@@ -1,6 +1,12 @@
 from panda3d.core import FrameBufferProperties
 
 
+def test_fbprops_copy_ctor():
+    default = FrameBufferProperties.get_default()
+    fbprops = FrameBufferProperties(default)
+    assert fbprops == default
+
+
 def test_fbquality_depth():
     # We check common framebuffer depth configurations to make sure they
     # are rated predictably with respect to each other when requesting 1 bit.