Skip to content

Commit

Permalink
tests: use EXPECT over ASSERT in playlist sorting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rsekman committed Sep 14, 2024
1 parent b5c1cc2 commit 1221954
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/PlaylistTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ TEST(PlaylistTests, test_PlaylistSort) {
EXPECT_STREQ(plt_find_meta(plt, "autosort_tf"), sort_tf);

playItem_t *head = plt_get_head_item(plt, PL_MAIN);
ASSERT_STREQ("A", pl_find_meta_raw(head, "artist"));
EXPECT_STREQ("A", pl_find_meta_raw(head, "artist"));
pl_item_unref(head);

tail = plt_get_tail_item(plt, PL_MAIN);
ASSERT_STREQ("C", pl_find_meta_raw(tail, "artist"));
EXPECT_STREQ("C", pl_find_meta_raw(tail, "artist"));

pl_item_unref(tail);

Expand Down Expand Up @@ -119,11 +119,11 @@ TEST(PlaylistTests, test_PlaylistAutosort) {
EXPECT_STREQ(plt_find_meta(plt, "autosort_tf"), sort_tf);

playItem_t *head = plt_get_head_item(plt, PL_MAIN);
ASSERT_STREQ("A", pl_find_meta_raw(head, "artist"));
EXPECT_STREQ("A", pl_find_meta_raw(head, "artist"));
pl_item_unref(head);

tail = plt_get_tail_item(plt, PL_MAIN);
ASSERT_STREQ("C", pl_find_meta_raw(tail, "artist"));
EXPECT_STREQ("C", pl_find_meta_raw(tail, "artist"));

pl_item_unref(tail);

Expand Down

0 comments on commit 1221954

Please sign in to comment.