Fix the 5 skipped locale-casing specs in valdi_test/test/SpecialCasing.spec.ts
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, typescript
- Domain
- internationalization, testing-qa
Research direction
Start with the five xit specs in src/valdi_modules/src/valdi/valdi_test/test/SpecialCasing.spec.ts and the QuickJS SpecialCasing patch described in the comment at the top of that file. Check EngineSupport.ts in the same folder to see how engine gating works. Run bazel test //src/valdi_modules/src/valdi/valdi_test:test. Done means none of the five specs is a plain xit and the target passes, either because Hermes now matches the expected casing or because the cases are gated by engine.
Written by the indexing model from the issue text.
Description
Five specs in src/valdi_modules/src/valdi/valdi_test/test/SpecialCasing.spec.ts are skipped with xit because Hermes, the default JS engine, doesn't follow the expected locale casing rules:
| Spec | What Hermes does |
|---|---|
preserves 'I' + non-Above mark + dot as absorbed |
Turkic lowercase keeps the dot after a non-Above mark |
applies unconditional ß → SS under uppercase |
toUpperCase doesn't map ß to SS |
resolves through sparse array holes to the first defined tag |
toLocaleUpperCase throws on a locale list with holes |
accepts array-like objects (ToObject then iterate) |
toLocaleUpperCase throws on an array-like locale list |
skips undefined/null elements when scanning |
toLocaleUpperCase throws on undefined/null entries |
The rest of the file runs normally. On QuickJS, this behavior comes from a vendored SpecialCasing patch (see the comment at the top of the file).
What to do, for each spec:
- Make Hermes behave as the spec expects, the way the QuickJS patch does, then change
xitback toit. - Or, if a case can't be supported on Hermes, gate it on the engine (see
EngineSupport.tsin the same folder) instead of skipping it everywhere.
How to run
bazel test //src/valdi_modules/src/valdi/valdi_test:test
Done when: none of the five specs is skipped by a plain xit, and the target passes.
See CONTRIBUTING.md before opening a pull request.
- Dominant language
- C++
- Stars
- 16.4k
- Forks
- 539
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Snapchat/Valdi
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Rust codegen: RustMethodResolver fails to unwrap .nullable on optional interface/module methodsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepseek-ai/DeepGEMM-Ascend#49 ·
Maintainers usually reply within 1 day
-
bug needs testing platform:windows topic:buildsystem topic:platforms
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
godotengine/godot#126110 · 1 comment ·
Maintainers usually reply within 1 day
-
comp-s3queue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ClickHouse/ClickHouse#137649 ·
Maintainers usually reply within 1 day
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yugabyte/yugabyte-db#40355 ·
Maintainers usually reply within 1 day
-
Clear params.inputs in dials.indexPossibly taken @phyy-nx claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dials/dials#3361 · 1 comment ·
Maintainers usually reply within 1 day