bitwalker / bitwalker/libgraph
Failing tests
- Lenguaje dominante
- Elixir
- Estrellas
- 571
- Forks
- 76
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
test sizeof/1 (Graph.UtilsTest)
`assert 440 = sizeof(String.duplicate("bar", 128))`
```
left: 440
right: 456
```
> I can't comment on what's going on here, but on my system 456 seems to be correct as `:erlang.system_info(:wordsize) == 8` so `sizeof(String.duplicate("bar", 128))` evaluates to 72 + 384 = 456.
test inspect (PriorityQueue.Test)
`assert "#PriorityQueue" = str`
```
left: "#PriorityQueue"
right: "#PriorityQueue"
```
> I think this was caused by an Elixir update at some point that prefers the sigil notation over the single-quoted strings. If reproducible would update the test expected value to use the sigil or change the inspect function to convert the sigil to the single-quoted string format.
test inspect (GraphTest)
`assert "#Graph :b, :a -> :b, :b -[{:complex, :label}]-> :a, :b -> :c]>" = str`
```
left: "#Graph :b, :a -> :b, :b -[{:complex, :label}]-> :a, :b -> :c]>"
right: "#Graph :b, :a -[foo]-> :b, :b -[{:complex, :label}]-> :a, :b -> :c]>"
```
> Since edges come from a map the order is not reliable, need to sort before printing to ensure test can pass.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Empieza ejecutando las pruebas que fallan en Graph.UtilsTest, PriorityQueue.Test y GraphTest. Comprueba el sizeof indicado y contrasta las expectativas con el comportamiento actual de Elixir; después, verifica que la salida de las aristas del grafo sea determinista. La tarea estará terminada cuando las tres pruebas que fallaban pasen sin depender del tamaño de palabra específico de la plataforma ni del orden de iteración de los mapas.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- elixir
- Área
- testing
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100