Skip to content

Commit

Permalink
追加断言
Browse files Browse the repository at this point in the history
  • Loading branch information
luobeichen committed Jan 7, 2025
1 parent 4028f4c commit b7e0ff1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/assert_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,8 @@ def assert_ocr_not_exist(
def assert_text_exist(src, det):
"""
断言源字符串中的所有字符串在目标字符串中都存在
:param src : 字符串 or 字符串数组
:param det : 目标字符串
"""
if not isinstance(det, str):
raise TypeError("det 必须是字符串")
Expand Down

0 comments on commit b7e0ff1

Please sign in to comment.