aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check.py
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-19 07:34:12 +0100
committereunhhu <[email protected]>2026-10-19 07:34:12 +0100
commitf1bb9de4ac72136a1b0722ce77ac4ea6fd4fa413 (patch)
tree156f662c904e7c723db11fcc7a3bee59a8d2d1f8 /tests/check.py
parentfc13b251f6d244df31d5b4100dc421e3f3fe685a (diff)
downloadpure-f1bb9de4ac72136a1b0722ce77ac4ea6fd4fa413.tar.gz
pure-f1bb9de4ac72136a1b0722ce77ac4ea6fd4fa413.zip
140: aup's frictions written away and the apps measured again (no core change, no new opcode): lists declared together, targets together (straight when no value can read what a target changes), a list given a list value whole, abs, tick.period, hex where numbers go; lines to Python 1.47-2.04x (were 1.47-2.15x): UAX #14 176 to 169, layout 116 to 110, HTTP 148 to 146 and its last workaround gone; instructions of the four whose modules changed within 0.2%, inflate's and UAX #14's modules the same; the six specs' checks pass on the three paths, module_specs nine; RTO's checks no longer rewrite G (tick.period); the suite table's rows 5, 8 and 9
Diffstat (limited to 'tests/check.py')
-rw-r--r--tests/check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check.py b/tests/check.py
index dd64e03..cab0347 100644
--- a/tests/check.py
+++ b/tests/check.py
@@ -1971,7 +1971,7 @@ def module_specs(aup, pure, work):
source, events = (EXAMPLES / 'rto.aup').read_text(), 0
for scenario in json.loads((pure / 'tests/specs/rto/scenarios.json').read_text()):
period = scenario['period']
- (work / 'rto.aup').write_text(source.replace('every 10 ms', f'every {period} ms').replace('fn PERIOD = 10 ', f'fn PERIOD = {period} '))
+ (work / 'rto.aup').write_text(source.replace('every 10 ms', f'every {period} ms')) # G is tick.period
program = work / 'rto.pmod'
compile_module(aup, work / 'rto.aup', program)
given = ''.join(f'time {t}\n' + ('tick tick\n' if kind == 'tick' else f"message {kind} {struct.pack('<I', seq).hex()}\n")