Boundary-test the decimal comparison operand grammar
I maintainer di solito rispondono entro 1 giorno
@soyeladice-svg ci sta già lavorando.
Dal 29/9/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia leggendo i test esistenti in internal/evaluation/ e il comportamento del valutatore nel confronto dei decimali. Aggiungi casi basati su tabelle con t.Run per i casi limite della grammatica specificati, verificando i codici diagnostici in caso di rifiuto e l’uguaglianza dei risultati quando cambia la scala. Esegui env GO111MODULE=on go test ./internal/evaluation e go test ./...; il lavoro è concluso quando entrambi i comandi hanno esito positivo e i criteri di accettazione indicati sono soddisfatti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Goal
Add table-driven tests for the decimal-string grammar that ordered fact comparisons require.
Why
Core §2.2 fixes the operand form for greater-than, greater-than-or-equal, less-than and less-than-or-equal:
decimal = [ "-" ] ( "0" / non-zero-digit *DIGIT ) [ "." 1*DIGIT ]
That grammar refuses a leading +, a leading zero such as 007, a bare .5, a trailing 5., an exponent, whitespace, and an empty string — and it accepts -0.5 and 0.10. It also exists because JSON numbers are the wrong carrier for a business quantity whose decimal identity matters, which is a decision worth having pinned by cases rather than by prose.
The evaluator implements it. What is thin is a set of tests that walk the grammar's edges deliberately, one accepted and one rejected value per rule.
Scope
- Change test files under
internal/evaluation/only. - Table-driven, with
t.Runper case, covering at least: leading+, leading zeros, bare.5, trailing5., exponent forms, internal or surrounding whitespace, empty string,-0, and a value with more fractional digits than the operand it is compared against. - Assert the diagnostic each rejection produces, not merely that it was rejected.
- Do not change the grammar, the evaluator, or any schema.
Acceptance criteria
- Each rule of the §2.2 grammar has at least one accepted and one rejected case.
- Rejections assert their diagnostic code, so a rejection for the wrong reason fails.
- Scale differences that must compare equal do, and are shown to.
-
env GO111MODULE=on go test ./internal/evaluationandgo test ./...pass. - Every commit includes a DCO sign-off created with
git commit -s.
Contributor learning
Why a specification carries an explicit decimal grammar instead of using JSON numbers, and how to test a grammar at its edges rather than in its middle.
- Lingua principale
- Go
- Stelle
- 2
- Fork
- 6
- Merge medio
- 2h 22m
- PR unite (30g)
- 89
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Judgment-Pack/judgment-pack-runtime
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
Judgment-Pack/judgment-pack-runtime#347 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 49/100
Judgment-Pack/judgment-pack-runtime#342 ·
I maintainer di solito rispondono entro 1 giorno
-
Deduplicate equivalent CI job and PR/main checks while retaining release-toolchain coverageForse già presa @kikashy l’ha presa 4 giorni fa. Aperta
Judgment-Pack/judgment-pack-runtime#340 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Adopt shared version-pinned CI and release imagesForse già presa @kikashy l’ha presa 5 giorni fa. Aperta
Judgment-Pack/judgment-pack-runtime#339 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Read and verify the audit trail over the wire, not by client-side file parsingForse già presa @kikashy l’ha presa 10 giorni fa. Apertaenhancement storage-kinds
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Judgment-Pack/judgment-pack-runtime#308 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Judgment-Pack/judgment-pack-runtime
Issue simili
-
date_time, url_encode, html_escape, to_unix_time, contains_all and contains_any panic when called without argumentsForse già presa @antcybersec l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
projectdiscovery/dsl#372 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
JuliusBrussee/caveman#1449 ·
I maintainer di solito rispondono entro 1 giorno
-
bot-found bug priority: P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
madenvel/KalinkaPlayer#498 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openclaw/gogcli#1291 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno