bitwalker / bitwalker/libgraph
Failing tests
- Lingua principale
- Elixir
- Stelle
- 571
- Fork
- 76
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia eseguendo i test che falliscono in Graph.UtilsTest, PriorityQueue.Test e GraphTest. Controlla il sizeof segnalato e confronta le aspettative con il comportamento attuale di Elixir, quindi verifica che l'output degli archi del grafo sia deterministico. Il lavoro è completato quando tutti e tre i test che fallivano passano senza dipendere dalla dimensione delle parole specifica della piattaforma o dall'ordine di iterazione delle mappe.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- elixir
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100