test(Add unit tests):

This commit is contained in:
2024-09-23 18:46:25 +08:00
parent e8e7c59579
commit 43bc27cbc3
29 changed files with 1483 additions and 0 deletions

8
myenv/bin/normalizer Executable file
View File

@@ -0,0 +1,8 @@
#!/home/muzhi/tpre-python/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from charset_normalizer.cli import cli_detect
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli_detect())