29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
"""Regress the actual binary bridge, not a guessed phase-order simulation."""
|
|
from pathlib import Path
|
|
import sys
|
|
import unittest
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(ROOT / 'tools' / 'binary'))
|
|
from checkpoint_input_frame import collect, SLOTS, CALLS
|
|
|
|
|
|
class InputFrameEvidenceTests(unittest.TestCase):
|
|
def test_original_dispatch_and_timer_evidence(self):
|
|
original = ROOT.parent / 'Original'
|
|
if not (original / 'Neutron.exe').exists():
|
|
self.skipTest('Original evidence is local-only and absent')
|
|
report = collect(original)
|
|
self.assertEqual(len(report['evidence']), 30)
|
|
self.assertEqual(len(SLOTS), 8)
|
|
self.assertEqual(len(CALLS), 6)
|
|
|
|
def test_physics_precedes_registry_in_same_viewport_override(self):
|
|
sites = {label: va for va, _, label in CALLS}
|
|
self.assertLess(sites['physics'], sites['all game objects'])
|
|
self.assertLess(sites['all game objects'], sites['all logical-to-visual transforms'])
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|