Fix the 5 skipped locale-casing specs in valdi_test/test/SpecialCasing.spec.ts
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C++
- スター
- 16.4k
- フォーク
- 538
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Snapchat/Valdi のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
ai_p1 comp-sql-syntax
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ClickHouse/ClickHouse#133888 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 半日 初心者へのやさしさ 66/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jbcoe/cc-protocol#507 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信