Add More Test Cases for Edge Cases in Number Operations
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
Start by reading and running test_numbers.py, which currently covers standard operations and type checks for integers, booleans, floats, and complex numbers. Add focused tests for the listed division, floating-point, NaN/infinity, complex-number, and mixed-operand cases; done means the new tests pass and document the expected behavior.
索引モデルが issue の本文から書いたものです。
説明
The current test_numbers.py file provides comprehensive coverage for standard operations and type checks for integers, booleans, floats, and complex numbers. However, it would be beneficial to add more test cases that cover edge cases and unusual scenarios. For example:
- Division by zero and its handling (e.g., 1 / 0 raises ZeroDivisionError).
- Very large and very small floating-point numbers (e.g., underflow/overflow).
- Operations involving NaN and infinity in floats.
- Complex number operations with zero imaginary or real parts.
- Boolean operations with non-boolean operands.
Adding these tests will help ensure robustness and correctness when handling special cases in numerical computations.
- 主要言語
- Python
- スター
- 18.3k
- フォーク
- 3k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
trekhleb/learn-python のほかの issue
-
Typo in Variable Name: "weapon.strip()" Should Be "fruit.strip()" in List Comprehensions Example オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
trekhleb/learn-python#105 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
trekhleb/learn-python#104 · コメント 1 件 ·
-
Learning Python オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
trekhleb/learn-python#108 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
trekhleb/learn-python#107 · コメント 1 件 ·
-
Hack オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
trekhleb/learn-python#102 · コメント 1 件 ·
trekhleb/learn-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
huggingface/Repo2RLEnv#163 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NousResearch/hermes-agent#121143 ·