mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 02:56:17 -10:00
Add version-bound core, world data, geometry, generation and feature implementations with native client/server comparison tools and scoped evidence reports. Apply Horizon project branding. Workspace tests, Clippy and 147 Python tests passed. Full 51-family survival and expanded provider comparisons are still running; complete gameplay parity and a playable Rust client remain unfinished. Private game artifacts and the isolated simple-block placement work are excluded.
21 lines
791 B
Python
21 lines
791 B
Python
import math
|
|
import unittest
|
|
from tools import test_face_support_parity as faces
|
|
|
|
|
|
class FaceSupportCorpusTests(unittest.TestCase):
|
|
def test_sparse_grids_face_boundaries_and_translations(self):
|
|
fixtures=list(faces.corpus())
|
|
self.assertEqual(fixtures,list(faces.corpus()))
|
|
self.assertTrue(any(f.get('boxes')==[] for f in fixtures))
|
|
self.assertTrue(any('move' in f for f in fixtures))
|
|
self.assertTrue(any(f.get('cube') for f in fixtures))
|
|
self.assertEqual(len(fixtures[:512]),512)
|
|
for f in fixtures:
|
|
if 'coords' in f:self.assertEqual(len(f['occupied']),math.prod(len(v)-1 for v in f['coords']))
|
|
else:
|
|
for box in f['boxes']:self.assertEqual(len(box),6)
|
|
|
|
|
|
if __name__=='__main__':unittest.main()
|