コード例 #1
0
 def test_as_both(self):
     a = Array()
     a.resize(9)
     pa = PoolVector3Array()
     pa.resize(1000)
     assert len(pa) == 1000
     a[0] = pa
     assert len(pa) == 1000
     pa.resize(2000)
     assert len(pa) == 2000
     assert len(a[0]) == 2000
     a[0].resize(3000)
     assert len(a[0]) == 3000
コード例 #2
0
 def test_size_in_array(self):
     a = Array()
     a.resize(9)
     a[0] = PoolVector3Array()
     a[0].resize(1000)
     assert len(a[0]) == 1000