Build Horizon Rust parity foundations and differential validation
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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import unittest
|
||||
from tools import test_material_surface_parity as material
|
||||
|
||||
|
||||
class MaterialSurfaceCorpusTests(unittest.TestCase):
|
||||
def test_seeded_band_stream_modes_and_boundary_overrides(self):
|
||||
fixtures=list(material.corpus())
|
||||
self.assertEqual(fixtures,list(material.corpus()))
|
||||
real=[f for f in fixtures if f["overrides"]==[None]*3]
|
||||
self.assertEqual(len(real),128)
|
||||
self.assertEqual({(f["legacy"],f["child"]) for f in real},{(False,False),(False,True),(True,False),(True,True)})
|
||||
self.assertEqual({f["consume"] for f in real},{-1,0,1,17})
|
||||
values={f["overrides"][0] for f in fixtures if f["overrides"][0] is not None}
|
||||
self.assertTrue({"3dffffff","3e000000","3e000001","be000000","7f800000","ff800000","7fc00001"}<=values)
|
||||
points=fixtures[0]["points"]
|
||||
self.assertIn([7,-193,-11],points)
|
||||
self.assertIn([7,-192,-11],points)
|
||||
self.assertIn([-2**31,-2**31,2**31-1],points)
|
||||
|
||||
|
||||
if __name__=="__main__":unittest.main()
|
||||
Reference in New Issue
Block a user