Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#61 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
66/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
lua
Lĩnh vực
testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Lua
Star
0
Fork
0
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenLua

Tất cả issue của InauguralSystems/EigenLua

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.