Files
yao-meta-skill/tests/verify_html_rendering.py
YAO 31ce04c655 Split meta skill CLI and review gates
Merge the beta-ready Yao Meta Skill architecture, report, evidence gate, and release-boundary updates.\n\nRelease boundary: beta/public testing is allowed; formal world-class, fully reviewed, or superiority claims remain blocked until the pending evidence gates are accepted.
2026-06-17 18:43:02 +08:00

24 lines
580 B
Python

#!/usr/bin/env python3
import json
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(ROOT / "scripts"))
from html_rendering import html_text # noqa: E402
def main() -> None:
assert html_text(None) == ""
assert html_text(0) == "0"
assert html_text(False) == "False"
assert html_text("") == ""
assert html_text("<tag data-x=\"1\">&</tag>") == "&lt;tag data-x=&quot;1&quot;&gt;&amp;&lt;/tag&gt;"
print(json.dumps({"ok": True}, ensure_ascii=False, indent=2))
if __name__ == "__main__":
main()