chore: 提交五子棋v2审查修复计划与前期优化

- 调整core/src/board.rs测试代码格式,移除多余逗号
- 重构core/src/record.rs日期测试断言为多行格式,提升可读性
- 更新Cargo.lock,添加网络对战所需的加密与网络依赖包
- 新增完整的v2版本审查修复计划文档,包含14个优先级分批的修复任务,覆盖bug修复、测试补全、国际化、功能新增等全方面优化内容
This commit is contained in:
2026-05-31 15:28:59 +08:00
parent bda917ce37
commit 2ad05cab4b
4 changed files with 1456 additions and 2 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ mod tests {
let result = board.undo();
assert!(result.is_err());
match result {
Err(MoveError::NoHistory) => {},
Err(MoveError::NoHistory) => {}
other => panic!("expected NoHistory, got {:?}", other),
}
}
+5 -1
View File
@@ -183,6 +183,10 @@ mod tests {
// ISO 8601 格式: YYYY-MM-DDTHH:MM:SSZ
assert!(record.date.contains('T'), "date should contain T separator");
assert!(record.date.ends_with('Z'), "date should end with Z");
assert_eq!(record.date.len(), 20, "date should be 20 chars: YYYY-MM-DDTHH:MM:SSZ");
assert_eq!(
record.date.len(),
20,
"date should be 20 chars: YYYY-MM-DDTHH:MM:SSZ"
);
}
}