Skip to content

Commit e6cca2b

Browse files
committed
test:Another bug.
1 parent fa75550 commit e6cca2b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

xt/30-bugs.rakutest

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ subtest {
1111
is Graph.new(vertexes => ["1", "2"], edges => []).vertex-list, <1 2>;
1212
}, "has vertexes and no edges graph";
1313

14+
subtest {
15+
is-deeply Graph.new(^5, []).adjacency-list, {0 => {}, 1 => {}, 2 => {}, 3 => {}, 4 => {}};
16+
is-deeply Graph.new((^5), []).index-graph(10).vertex-list, <10 11 12 13 14>;
17+
}, "indexed graph over no edges";
18+
1419
done-testing;

0 commit comments

Comments
 (0)