Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions animedex/diag/selftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"animedex.entry",
"animedex.entry.aggregate",
"animedex.entry.cli",
"animedex.entry.enhance",
"animedex.entry.search",
"animedex.entry.show",
"animedex.diag",
Expand Down Expand Up @@ -112,6 +113,9 @@
"animedex.mcp",
"animedex.mcp.tool_decorator",
"animedex.mcp.register",
"animedex.enhance",
"animedex.enhance._heuristics",
"animedex.enhance.models",
"animedex.agg",
"animedex.agg._fanout",
"animedex.agg.calendar",
Expand Down Expand Up @@ -415,6 +419,14 @@ def _smoke_jaconv() -> None:
assert jaconv.hira2kata("\u305d\u30fc\u3069\u3042\u30fc\u3068") == "\u30bd\u30fc\u30c9\u30a2\u30fc\u30c8"


def _smoke_opencc() -> None:
"""Smoke-test OpenCC converter dictionaries."""
from opencc import OpenCC

assert OpenCC("s2t").convert("\u846c\u9001\u7684\u8299\u8389\u83b2") == "\u846c\u9001\u7684\u8299\u8389\u84ee"
assert OpenCC("t2s").convert("\u846c\u9001\u7684\u8299\u8389\u84ee") == "\u846c\u9001\u7684\u8299\u8389\u83b2"


def _smoke_unidecode() -> None:
"""Smoke-test Unidecode transliteration tables."""
from unidecode import unidecode
Expand Down Expand Up @@ -442,6 +454,7 @@ def _smoke_tzdata() -> None:
("jq", _smoke_jq),
("anyascii", _smoke_anyascii),
("jaconv", _smoke_jaconv),
("opencc_python_reimplemented", _smoke_opencc),
("unidecode", _smoke_unidecode),
("tzdata", _smoke_tzdata),
)
Expand Down
484 changes: 484 additions & 0 deletions animedex/enhance/__init__.py

Large diffs are not rendered by default.

Loading
Loading