From df04e9c5765196140bfeac6d44caa261306eeb36 Mon Sep 17 00:00:00 2001 From: xbfighting Date: Tue, 7 Jul 2026 16:09:26 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E7=9C=9F=E5=AE=9E=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=88=87=E7=89=87=20fixture=20=E8=A1=A5=E9=BD=90=20(#34=20?= =?UTF-8?q?=E9=81=97=E7=95=99=E9=A1=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - dd 自实际 vipdoc 切 3 条/文件:sz000001(1991 年首批日线)、 sh688001(科创板第一股上市首日)、sz000001.lc5(2025-01) - 断言为真实观测值(历史数据不变化,天然稳定);float32 字段用 approx 容差 - 防合成 fixture 与解析器共享同一格式误解——本次真实字节验证 三条解析路径结论与合成 fixture 一致 Co-Authored-By: Claude Fable 5 --- tests/fixtures/real_sh688001.day | Bin 0 -> 96 bytes tests/fixtures/real_sz000001.day | Bin 0 -> 96 bytes tests/fixtures/real_sz000001.lc5 | Bin 0 -> 96 bytes tests/test_reader.py | 49 +++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 tests/fixtures/real_sh688001.day create mode 100644 tests/fixtures/real_sz000001.day create mode 100644 tests/fixtures/real_sz000001.lc5 diff --git a/tests/fixtures/real_sh688001.day b/tests/fixtures/real_sh688001.day new file mode 100644 index 0000000000000000000000000000000000000000..adaf52213d753eca85e6cd74b750ad1a7eb985fe GIT binary patch literal 96 zcmZP)GhtjJ%D|u`!@y9^&%m$_$X3|2+0SY9E=C3hMh0e}e25SO!$c7VhN*%K44lFY m40Vlfe7%}yGJxb+fbvp6u_T~8h*kj7hgZDvb^SXTEDr!JL=lew literal 0 HcmV?d00001 diff --git a/tests/fixtures/real_sz000001.day b/tests/fixtures/real_sz000001.day new file mode 100644 index 0000000000000000000000000000000000000000..53b778f9677a9d9819e940633b364c1d01ddfe72 GIT binary patch literal 96 zcmZQRug|C=%)o$*864)grZ7MN3s9a1D36R860+QM7$NekK>0613=GJa!9m9D1XMo& DEFui1 literal 0 HcmV?d00001 diff --git a/tests/fixtures/real_sz000001.lc5 b/tests/fixtures/real_sz000001.lc5 new file mode 100644 index 0000000000000000000000000000000000000000..e6e4889b8de013af86c074c418c9ba7b07e68d5b GIT binary patch literal 96 zcmb