Failing tests
まだ誰も着手していません。
評価
調査の方向性
まず Graph.UtilsTest、PriorityQueue.Test、GraphTest で失敗しているテストを実行します。報告された sizeof を確認し、現在の Elixir の動作と期待値を照合してから、グラフのエッジ出力が決定的であることを検証します。プラットフォーム固有のワードサイズや map の反復順序に依存せず、3 つすべての失敗がパスすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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) == 8sosizeof(String.duplicate("bar", 128))evaluates to 72 + 384 = 456.
test inspect (PriorityQueue.Test)
assert "#PriorityQueue<size: 5, queue: 'abcde'>" = str
left: "#PriorityQueue<size: 5, queue: 'abcde'>"
right: "#PriorityQueue<size: 5, queue: ~c\"abcde\">"
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<type: directed, vertices: [:a, :b, :c], edges: [:a -[foo]-> :b, :a -> :b, :b -[{:complex, :label}]-> :a, :b -> :c]>" = str
left: "#Graph<type: directed, vertices: [:a, :b, :c], edges: [:a -[foo]-> :b, :a -> :b, :b -[{:complex, :label}]-> :a, :b -> :c]>"
right: "#Graph<type: directed, vertices: [:a, :b, :c], edges: [:a -> :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.
- 主要言語
- Elixir
- スター
- 571
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitwalker/libgraph のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
bitwalker/libgraph の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
agentjido/jido_harness#80 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
sevenseacat/cinder#235 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
phoenixframework/phoenix#6847 ·