Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

test(evaluators): edge cases for the numeric comparison evaluators

Aperta Adatta ai principianti
#381 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Inizia da tests/core/evaluators/test_greater_than.py, test_greater_than_equal_to.py, test_less_than.py e test_less_than_equal_to.py, quindi confronta i casi esistenti di successo e fallimento con interi. Aggiungi in ogni file la copertura per valori uguali, numeri in virgola mobile, input None e confronti tra stringhe e numeri, lasciando invariato il codice degli evaluator. Esegui pytest tests/ e black --line-length 120 prima di aprire la PR.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue hacktoberfest tests
Problem

test_greater_than.py, test_greater_than_equal_to.py, test_less_than.py and test_less_than_equal_to.py in tests/core/evaluators/ each test one pass and one fail with integers. Nothing covers None, floats, equal values or mixed types, where > raises and the evaluator falls back to the exception message.

What to change

Tests only; no evaluator code changes. If a case exposes a wrong verdict, note it in the PR and we'll open a follow-up.

Done when

Each of the four files covers: equal values, floats, None input, and a string compared with a number.


Comment to claim this issue and wait to be assigned. Unclaimed or inactive for 3 days, it returns to the pool. Run pytest tests/ and black --line-length 120 before opening the PR.

Lingua principale
Python
Stelle
167
Fork
47
Merge medio
2g 9h
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di StackGuardian/tirith

Tutte le issue di StackGuardian/tirith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.