Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix subcategories list ordering assumption
  • Loading branch information
Paul Cochrane committed May 6, 2015
1 parent 52a2054 commit 5a57ec7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/003-categories.t
Expand Up @@ -41,7 +41,7 @@ subtest {
}, "categories-list functionality";

subtest {
plan 4;
plan 5;

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

Expand Down

0 comments on commit 5a57ec7

Please sign in to comment.