aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-02-25 12:00:51 +0800
committer简律纯 <i@jyunko.cn>2024-02-25 12:00:51 +0800
commit89f753a58bf2646c386096b23b9d629bb9c687b2 (patch)
treeb833e2052949d8f855e27cdfad5a86b861e6affd
parente2c1c1911e117245551a612499d02eacabbbe5d8 (diff)
downloadTRPGNivis-89f753a58bf2646c386096b23b9d629bb9c687b2.tar.gz
TRPGNivis-89f753a58bf2646c386096b23b9d629bb9c687b2.zip
chore(tests): delete useless files
-rw-r--r--tests/__init__.py25
-rw-r--r--tests/get_next_token.py2
-rw-r--r--tests/if-else.py0
3 files changed, 0 insertions, 27 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 97989dc..e69de29 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,25 +0,0 @@
-from os.path import join, abspath, dirname
-
-DIR = dirname(abspath(__file__))
-
-token_dict = {} # 创建一个空字典
-
-with open(join(DIR, "..", "psi", "Grammar", "Token"), "r") as file:
- for line in file:
- if line := line.strip():
- values = line.split() # 使用空格分割行,得到值列表
- code = values[0] # 第一个值为代码
- symbol = (
- values[1] if len(values) > 1 else None
- ) # 第二个值为符号,如果没有第二个值,则设置为None
- token_dict[code] = symbol # 将代码和符号添加到字典中
-
-# 将字典中的键值对转换为多个变量及其对应的值
-for code, symbol in token_dict.items():
- globals()[code] = symbol
-
-# 打印变量及其对应的值
-print(LPAR)
-print(RPAR)
-print(AWAIT)
-# 其他变量...
diff --git a/tests/get_next_token.py b/tests/get_next_token.py
deleted file mode 100644
index 741ad72..0000000
--- a/tests/get_next_token.py
+++ /dev/null
@@ -1,2 +0,0 @@
-class ABC:
- ...
diff --git a/tests/if-else.py b/tests/if-else.py
deleted file mode 100644
index e69de29..0000000
--- a/tests/if-else.py
+++ /dev/null