[pov] Four "Errors if" cases expect null instead of an error

Abierto
#2,719 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
json, markdown

Línea de trabajo

The four cases are in exercises/pov/canonical-data.json around lines 286-296, and the other three "Errors if" cases sit at lines 299, 492 and 524. The README section on expected errors (README.md around line 265) gives the required shape of the expected object. Done means those four cases expect an object with an error property instead of null, with messages matching the existing ones; the open question of whether to change them at all is still undecided in the thread.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

In the pov exercise, four cases test what happens when a node doesn't exist, and their descriptions start with "Errors if". However, they expect null instead of an error:

https://github.com/exercism/problem-specifications/blob/eb7976c6699c3054f77c035dae3ac39702282368/exercises/pov/canonical-data.json#L286-L296

The other three are "Errors if target does not exist in a large tree" (line 299), "Errors if destination does not exist" (line 492) and "Errors if source does not exist" (line 524).

The README says that when an error is expected, expected should be an object with one error property:

https://github.com/exercism/problem-specifications/blob/eb7976c6699c3054f77c035dae3ac39702282368/README.md?plain=1#L265

Fixing this would mean reimplementing the four cases with error messages, for example "Tree could not be reoriented" and "No path found".

Should we do that, or leave the cases as they are?

(An earlier version of this issue also listed alphametics, binary and relative-distance. In alphametics and relative-distance, null means "no answer", not an error, so they're fine. binary is deprecated.)

🤖 Generated with Claude Code

Lenguaje dominante
Ruby
Estrellas
362
Forks
566
Merge medio
13 h 38 min
PR fusionados (30 d)
14

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de exercism/problem-specifications

Todos los issues de exercism/problem-specifications

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.