Fix the 5 skipped locale-casing specs in valdi_test/test/SpecialCasing.spec.ts
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 16.4k
- Forks
- 538
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Snapchat/Valdi
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
-
Add first tests for valdi_rxjsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 Medio día Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
Todos los issues de Snapchat/Valdi
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
ai_p1 comp-sql-syntax
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ClickHouse/ClickHouse#133888 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 Medio día Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
jbcoe/cc-protocol#507 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día