Failing tests on Locale nb-no
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- internationalization, localization
Hướng nghiên cứu
Start with the failing tests exprSprintf_07, exprSprintf_08 and exprSprintf_10 in the TestFunctions class, and run them under the nb-NO locale to reproduce the comma-versus-dot mismatch. Then check how the afn:sprintf implementation formats numbers, and confirm with the maintainer whether it should follow the system locale or stay locale-independent. Done means the tests pass under nb-NO and the chosen behaviour is documented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version
6.3-SNAPSHOT
What happened?
b8c1fe4ad80b5d0a88bdc540a423b84996205c42 introduced failing tests when building on my laptop.
It has tests that fails on the nb-NO locale.
As far as I understand this is just the tests and the function itself uses the Root locale and stays persistent.
There is a companion PR that replaces the printf values that uses the current locale and replace them with the expected value.
I add a new test where I change the locale temporarily to see that afn:sprintf still returns the same value.
from the docs:
afn:sprintf(format, v1, v2, ...) | Make a string from the format string and the RDF terms.
Not sure if the function should be Locale independent or not, since it also doesn't have an equivalent xpath function afaik.
Does this look correct @afs or is it supposed to change with system locale?
Relevant output and stacktrace
[INFO]
[ERROR] Failures:
[ERROR] TestFunctions.exprSprintf_07:82->test:285 expected: <"this number is equal to 11,22"> but was: <"this number is equal to 11.22">
[ERROR] TestFunctions.exprSprintf_08:83->test:285 expected: <"1,235"> but was: <"1.235">
[ERROR] TestFunctions.exprSprintf_10:85->test:285 expected: <"this number is equal to 1,23457"> but was: <"this number is equal to 1.23457">
[INFO]
[ERROR] Tests run: 16788, Failures: 3, Errors: 0, Skipped: 12
[INFO]
Are you interested in making a pull request?
Yes
- Ngôn ngữ chính
- Java
- Star
- 1.5k
- Fork
- 733
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 56
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/jena
-
rset command throws NPE in ResultsFormat.guessSyntaxCó thể đã có người làm @Ostrzyciel đã nhận 16 ngày trước. Đang mởbug Cmd
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug JSON-LD
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/jena#4175 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
IRI resolution against a same-scheme base rewrites absolute info: IRIs (info:a/b -> info:a/a/b) since jena-iri removalCó thể đã có người làm @afs đã nhận 2 ngày trước. Đang mở
apache/jena#4388 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
apache/jena#4364 · 15 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpDatasetNames (empty GRAPH ?g {} in quad form) fails with ClassCastException on TDB2 (& ARQNotImplemented elsewhere)Có thể đã có người làm @krickert đã nhận 7 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
apache/jena#4362 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Document and enforce pull request review guidelinesCó thể đã có người làm @dashorst đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`Time.at(t, in: nil)` returns UTC instead of the local time (or the time zone of `t`), unlike CRubyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
hermes-queue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Retry-After parser accepts invalid delay-seconds valuesCó thể đã có người làm @Dhruvraj-Rana đã nhận hôm nay. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
open-telemetry/opentelemetry-java#9018 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug priority: medium Review effort [1-5]: 2 status: needs-triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
carlos-emr/carlos#5818 ·
Maintainer thường phản hồi trong vòng 1 ngày