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

ELM Tests for Quantity and Ratio don't test ELM

Aperta
#378 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing-qa

Direzione di ricerca

Esamina test/elm/quantity/quantity-test.ts e test/elm/ratio/ratio-test.ts insieme a src/elm/quantity.ts e src/elm/ratio.ts, quindi confronta la loro copertura con i test unitari esistenti. Rimuovi i casi ridondanti, sposta i test unici sui tipi di dati o sulla matematica nelle suite appropriate e aggiungi test di esecuzione usando CQL e JSON ELM reali; il lavoro è completato quando la conversione di Quantity e Ratio è verificata tramite l’esecuzione.

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

Descrizione

The ELM tests for Quantity and Ratio (test/elm/quantity/quantity-test.ts and test/elm/ratio/ratio-test.ts) don't actually interact w/ any compiled CQL, ELM JSON, or even their respective ELM classes (src/elm/quantity.ts and src/elm/ratio.ts). They are really just testing the datatype classes and math utils.

These tests should be reviewed to see if they provide unique value or if they are redundant with existing unit tests elsewhere. Tests that are redundant should be deleted. Tests that are not redundant should be moved to more appropriate tests suites (not ELM). New tests should be added that use real CQL and ELM JSON to verify that CQL Quantities and Ratios are properly converted to their respective data types when executed.

Lingua principale
JavaScript
Stelle
84
Fork
39
Merge medio
2g 5h
PR unite (30g)
5

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 cqframework/cql-execution

Tutte le issue di cqframework/cql-execution

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.