20 lines
590 B
Python
20 lines
590 B
Python
from pathlib import Path
|
|
import sys
|
|
import unittest
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(ROOT / 'tools/binary'))
|
|
from checkpoint_voice_clock import collect
|
|
|
|
|
|
class VoiceClockEvidenceTests(unittest.TestCase):
|
|
def test_original_voice_uses_software_time_and_repeat(self):
|
|
report = collect(ROOT.parent / 'Original')
|
|
self.assertEqual(len(report['vtables']), 3)
|
|
self.assertEqual(len(report['anchors']), 12)
|
|
self.assertEqual([c['value'] for c in report['constants']], [.5, 1000.0])
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|