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.
23 lines
1.1 KiB
Python
23 lines
1.1 KiB
Python
import unittest
|
|
from tools import test_bulk_section_parity as bulk
|
|
|
|
|
|
class BulkSectionCorpusTests(unittest.TestCase):
|
|
def test_all_state_cycles_cache_aliases_and_vertical_bounds(self):
|
|
facts = {'states': list(range(5)), 'defaults': {'minecraft:air': 0, 'minecraft:cave_air': 1, 'minecraft:void_air': 2, 'minecraft:stone': 3, 'minecraft:water': 4}}
|
|
fixtures = list(bulk.corpus(facts))
|
|
self.assertEqual(fixtures, list(bulk.corpus(facts)))
|
|
self.assertEqual({f['min'] for f in fixtures}, {-2032, -64, 0, 1968})
|
|
self.assertEqual({f['prime'] for f in fixtures}, {False, True})
|
|
self.assertTrue(all([4194304, 0] in f['chunks'] for f in fixtures))
|
|
self.assertTrue(all(['reset'] in f['ops'] for f in fixtures))
|
|
for f in fixtures:
|
|
self.assertTrue(any(op[:2] == ['get', 67108864] for op in f['ops']))
|
|
if f['min'] == -64:
|
|
inserted = {op[4] for op in f['ops'] if op[:4] == ['set', 0, -63, 0]}
|
|
self.assertEqual(inserted, set(range(5)))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|