Skip to content

test: 真实文件切片 fixture(#34 遗留项)#38

Merged
xbfighting merged 1 commit into
masterfrom
test-issue-34-real-fixtures
Jul 7, 2026
Merged

test: 真实文件切片 fixture(#34 遗留项)#38
xbfighting merged 1 commit into
masterfrom
test-issue-34-real-fixtures

Conversation

@xbfighting

Copy link
Copy Markdown
Owner

Summary

用真实 vipdoc 文件切片补齐 issue #34 计划中的真实字节样本,与合成 fixture 互补(真实字节防"生成器与解析器共享同一格式误解")。

What Changed

  • tests/fixtures/real_*.{day,lc5}:dd bs=32 count=3 切自实际数据盘(2026-07-07),每文件 96 字节
  • 样本选择:sz000001 1991 年首批记录 + sh688001 科创板第一股上市首日(走 688 raw 回退路径)+ lc5 2025-01——全部为不再变化的历史数据,断言天然稳定
  • 3 个新测试,f32 字段用 pytest.approx

How to Test

pytest tests/test_reader.py -v(10 passed;全量 55 passed)

Risks / Tradeoffs

  • 无:纯测试增量,fixture 共 288 字节

🤖 Generated with Claude Code

- dd 自实际 vipdoc 切 3 条/文件:sz000001(1991 年首批日线)、
  sh688001(科创板第一股上市首日)、sz000001.lc5(2025-01)
- 断言为真实观测值(历史数据不变化,天然稳定);float32 字段用
  approx 容差
- 防合成 fixture 与解析器共享同一格式误解——本次真实字节验证
  三条解析路径结论与合成 fixture 一致

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@xbfighting
xbfighting merged commit 280a699 into master Jul 7, 2026
5 checks passed
@xbfighting
xbfighting deleted the test-issue-34-real-fixtures branch July 7, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant