fix: 统一 .mt 首行 '-' 占位符语义——actpred 对齐 pybot/bot4cj 运行时(填 0),弃用 @Servo max 列填充
This commit is contained in:
1 parent
6d79fc919f
commit
0aa0710a9e
5 files changed
+42
-44
No files matched your search
@@ -91,7 +91,7 @@ def test_placeholder_recursion():
|
||||
|
||||
def test_placeholder_first_row():
|
||||
"""首行 '-':get_mt 返回字面 '-';parse_mt 解析为 typ("0")
|
||||
⚠️ 与 actpred/mt_parser.py 不同(后者用 @Servo 初始角度填充),不得误统一"""
|
||||
actpred/mt_parser.py 已统一为本语义(首行 '-' 填 0),本测试即两侧共同的语义锚点"""
|
||||
m = _matrix("@T\nname v;\na -;\n@\n")
|
||||
assert get_mt(m, 1, 1) == "-"
|
||||
assert parse_mt(m, 1, 1) == 0.0
|
||||
|
||||
Reference in new issue
Block a user