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(email): the paragraph's null claim must name the serializer behind it

Aashish2636a9bdb523
diff --git a/tests/test_email.py b/tests/test_email.py
index 54b56837..23684fe6 100644
--- a/tests/test_email.py
+++ b/tests/test_email.py
@@ -802,6 +802,11 @@ if len(extra_paragraph) == 1:
"from" in flat or "sender" in flat,
"the paragraph says nothing about how `sender` is dropped: %r" % flat,
)
+ check_true(
+ "state/the null claim names the serializer behind it",
+ ("null" not in flat.lower()) or ("serialize_state" in flat),
+ "the paragraph claims a null would reach the prompt without naming what renders it: %r" % flat,
+ )
check_true(
"state/doc and code agree on the filter",
("is not None" in inspect.getsource(email_state)) == ("None" in flat),