Skip to content

Commit 7606ffb

Browse files
committed
test:Added subgraph test.
1 parent cd66913 commit 7606ffb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

t/07-subgraphs.rakutest

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ subtest {
2424

2525
my $g2 = $g.subgraph($vset.keys);
2626

27+
is
28+
$g2.vertex-count ≥ $vset.elems,
29+
True,
30+
'Expected lower limit for the number of vertexes';
31+
2732
is
2833
$g2.vertex-count < $g.vertex-count,
2934
True,
30-
'Less vertexes';
35+
'Less vertexes than the original graph';
3136

3237
is
3338
$g2.vertex-coordinates.keys.elems,

0 commit comments

Comments
 (0)