Redundant & different test cases for different algorithms solving the same problem
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 重構
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- rust
- 領域
- testing-qa
研究方向
先檢視現有的排序演算法測試案例,並比較它們重複了哪些行為。定義一套共用且全面的測試方法,其中可以包含模糊測試,並確認所有實作都已涵蓋,同時不保留不必要的演算法特定重複內容。
由索引模型根據 Issue 內容生成。
描述
Consider e.g. the sorting algorithms: They all solve the same problem, yet each has its own test cases. This is only warranted if the tests are to test implementation details.
However, the better approach here is to write one comprehensive test suite - perhaps even using fuzzing - and testing all implementations against it. This will both increase coverage and reduce test duplication.
- 主要語言
- Rust
- 星號
- 26.1k
- 分支
- 2.6k
- 平均合併
- 5 小時 52 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TheAlgorithms/Rust 的其他 Issue
-
dont-close
難度 5/5 一週以上 新手友好度 25/100
TheAlgorithms/Rust#578 · 13 則留言 · 3 個 reaction ·
查看 TheAlgorithms/Rust 的全部 Issue
相似的 Issue
-
documentation P2
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
bug good first issue priority:high
難度 2/5 1-3 小時 新手友好度 88/100
Konfirm-xyz/konfirm-contracts#163 ·
維護者通常 1 天內回覆
-
area:gc-repack-output bug factory:dogfood factory:triaged priority:p3 type:bug type:ux
難度 2/5 1-3 小時 新手友好度 72/100
gitbutlerapp/grit#1161 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
feature performance
難度 2/5 1-3 小時 新手友好度 65/100
lance-format/lance#10137 ·
維護者通常 2 天內回覆