Arbitrary Strings Not Properly Encodable.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- testing
Línea de trabajo
Start by locating the Arbitrary instances for strings and characters in the repository, then inspect how generated UTF-16 code units are used by the existing tests. The issue proposes generating strings from code points or restricting the character range to U+0000–U+D7FF; determine which approach fits the library and verify the encoding behavior with the reported text encoding work.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi Folks, I have ongoing work to deal with string encoding for the purpose of supporting cryptography in purescript, and I am attempting to isolate the cause of the problem I encounter.
I suspect currently that the cause of the problem is actually in the way that quickcheck generates strings via Arbitrary. That is to say, that generating randomly ordered CodeUnits (purescript Char), is not truly compliant with the way UTF-16 strings should be encoded. If we wanted to join randomly generated strings, these should be the (potenitially) multi code-unit strings, aka CodePoints.
I think the best solution would be to redefine arbitrary string such that it is generated from Code Points, not Code Units. Failing this however, a "quick and dirty" solution would be to redefine the char range used to generate strings to always fall within the U+0000 to U+D7FF range. (Represented identically between their code point and code unit).
I will be happy over the weekend to write the PR should I find time and there are no objections raised here. It will also be used to verify my theory by using it with existing text encoding work I've done.
- Lenguaje dominante
- PureScript
- Estrellas
- 108
- Forks
- 42
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 purescript/purescript-quickcheck
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
purescript/purescript-quickcheck#136 · 1 comentario ·
-
Lazy List Arbitrary InstancePosiblemente ocupada @eviefp la tomó hace 2207 días. Abiertotype: enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
purescript/purescript-quickcheck#111 · 2 comentarios · 2 reacciones ·
-
type: documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100
-
purs-0.15 type: breaking change
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
purescript/purescript-quickcheck#104 · 12 comentarios ·
-
ShrinkingAbiertotype: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
purescript/purescript-quickcheck#103 · 6 comentarios · 4 reacciones ·
Todos los issues de purescript/purescript-quickcheck
Issues similares
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jest-community/eslint-plugin-jest#2052 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
johanhaleby/occurrent#1505 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jeanibarz/knowledge-base-mcp-server#1262 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
future-agi/future-agi#4092 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día