tools/acceptance/: Dockerfile (pi 0.85.1 image), run-task.sh / run-all.sh / judge.sh / pretty.py, tasks md-toc, kvstore, bugfix (seeded), minesweeper with hidden tests / black-box judges, models.tsv, README. Runs go to runs/ (ignored); curated results land under bench/unbiased/ when the campaign closes. frontend/tests/acceptance-real-engine.sh: PLAN.md step 13 (c): sampled checks, seeded repeat, tool call, decode and prompt-reading speed against an expected figure with a 15 % band. frontend/strata_context.cpp: the vocabulary-only load is retried with general.architecture overridden to "llama" when llama.cpp does not know the file's architecture; GLM 5.3 Flash's file says glm5-next (neurall's fork) and the front end refused to start (USTRAT-6). Verified on the 2x B200 pod: GLM starts, template renders, answers. tools/pod/README.md: pod-to-pod tree copy (90 s against hours from the laptop), bringup must wait for the tree. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
17 lines
615 B
Python
17 lines
615 B
Python
import os, sys, pathlib, pytest
|
|
sys.path.insert(0, os.environ.get("WORK", str(pathlib.Path(__file__).parent.parent)))
|
|
from pkg.intervals import merge
|
|
from pkg.slug import slugify
|
|
from pkg.duration import parse
|
|
def test_merge_more():
|
|
assert merge([[1, 10], [2, 3], [12, 12], [11, 11]]) == [[1, 12]]
|
|
assert merge([[1, 1]]) == [[1, 1]]
|
|
def test_slug_more():
|
|
assert slugify("Ünïcödé & ASCII") == "n-c-d-ascii"
|
|
assert slugify("2024-01-02") == "2024-01-02"
|
|
def test_duration_more():
|
|
assert parse("2h") == 7200
|
|
assert parse("0m") == 0
|
|
with pytest.raises(ValueError):
|
|
parse("30m1h")
|