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

Tier D: cover utf8.codes / utf8.offset edge cases

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
lua
Ambito
testing

Direzione di ricerca

Start by reading an existing Tier D program under corpus/D/ to match its style, then look at how tools/grade.sh runs and diffs output against reference Lua 5.4.9. Write corpus/D/utf8_codes_offset.lua covering the listed utf8.offset and utf8.codes edges, and run tools/grade.sh --tier D --only utf8_codes_offset. Done means it MATCHes, or each divergence is recorded in LEDGER.md, and bash tests/run.sh passes.

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

Descrizione

front-end good first issue

utf8.codes and utf8.offset each appear in only one Tier D program. Add a small corpus/D/utf8_codes_offset.lua that exercises their edges. The grader diffs it against reference Lua 5.4.9, so there's no expected output to write.

Suggested edges:

  • negative and out-of-range i for utf8.offset;
  • n = 0;
  • continuation-byte starts;
  • invalid sequences under utf8.codes, wrapped in pcall to print the error;
  • the lax argument.

If a line diverges because of an EigenScript limitation (for example NUL bytes in strings), record it in LEDGER.md rather than changing the program to avoid it.

Done when

  • corpus/D/utf8_codes_offset.lua exists and MATCHes the reference under tools/grade.sh --tier D --only utf8_codes_offset, or every divergence is classified in LEDGER.md.
  • bash tests/run.sh passes.
Lingua principale
Lua
Stelle
0
Fork
0
Merge medio
54m
PR unite (30g)
19

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 InauguralSystems/EigenLua

Tutte le issue di InauguralSystems/EigenLua

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.