Starting voxel engine test... Testing spatial index calculation... index(0,0,0) should be 0 index(7,0,0) should be 7 index(0,7,0) should be 56 index(0,0,7) should be 448 index(7,7,7) should be 511 Testing VoxelMath bitwise operations... setFilled(true) works raw value after setFilled should be 1 setPointType/getPointType works with value 7 raw value after setPointType(7) should be 0xF setTextureId/getTextureId works with value 1234 texture bits are set correctly setVisibleFaces/getVisibleFaces works visible faces bits are set correctly setFilled(false) clears the bit raw bit 0 is zero after setFilled(false) Testing chunk creation and voxel insertion... all inserted voxels have correct bitmask data voxel outside block should be zero (empty) empty voxel isFilled should be false empty voxel point type should be 0 empty voxel texture ID should be 0 empty voxel visible faces should be 0 Testing ChunkManager... chunk initially not present createChunk returns a Chunk instance getChunk returns the same instance chunkCount is 1 chunkCount is 2 after second chunk removeChunk returns true for existing chunk chunk removed from manager chunkCount decremented after removal clearAll removes all chunks All tests passed successfully!