Skip to content

Commit 5a57ec7

Browse files
committed
Fix subcategories list ordering assumption
1 parent 52a2054 commit 5a57ec7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/003-categories.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ subtest {
4141
}, "categories-list functionality";
4242

4343
subtest {
44-
plan 4;
44+
plan 5;
4545

4646
my %categories-table =
4747
"receiver" => "bob",
@@ -63,7 +63,9 @@ subtest {
6363
ok(@subcategories-list[0] ~~ Category,
6464
"Appended subcategory is a Category object");
6565
is(@subcategories-list.elems, 2, "Number of appended subcategories");
66-
is(@subcategories-list[0].key, "entangled-state",
66+
ok(@subcategories-list[0].key ~~ ("entangled-state", "initial-state").any,
67+
"Appended subcategory contains expected data");
68+
ok(@subcategories-list[1].key ~~ ("entangled-state", "initial-state").any,
6769
"Appended subcategory contains expected data");
6870
}, "append-subcategories functionality";
6971

0 commit comments

Comments
 (0)