Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

test(predict_long): a code floor that vanished must fail the gate, not abort it

Aashishf0a434f31b22
diff --git a/tests/test_predict_long.py b/tests/test_predict_long.py
index 1ceec400..18661613 100644
--- a/tests/test_predict_long.py
+++ b/tests/test_predict_long.py
@@ -1968,7 +1968,7 @@ for _doc_name, _doc, _stop in _WINDOW_DOCSTRINGS:
_stop_at = _para.find(_stop, _start)
_para = _para[_start:_stop_at if _stop_at > -1 else None]
check_true("floor/%s teaches the floored default" % _doc_name,
- _DEFAULT_EXPR in _para, _para[:160])
+ bool(_DEFAULT_EXPR) and _DEFAULT_EXPR in _para, _para[:160])
check_true("floor/%s states the budget nowhere without the floor" % _doc_name,
"max_len - head_max_len - 8" not in _para.replace(_DEFAULT_EXPR or "", ""),
_para[:160])