Tighten floating-point comparison tolerances in tests.
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 928
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
描述
As of this writing, we have tests with wide floating-point comparison tolerances. See, for example, call paths into TestSession.setEpsilon(...). @JimClarke5 reports, "I have seen a wide difference in the number of significant digits in other test cases when I use Java to determine the expected result."
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位调用 TestSession.setEpsilon(...) 的测试调用路径,并检查 issue 和链接的 review comment 中指出的浮点数比较。在保留可靠的预期结果比较的同时,收紧过宽的容差;受影响的测试使用更窄的容差通过后即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- testing
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100