Skip to content

Commit

Permalink
Unit test for style as yet uncategorized
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Feb 22, 2025
1 parent b981945 commit 55bcd32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unittests/styles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ TEST_F (styles, styles_order)
{
auto previous_category {stylesv2::Category::unknown};
for (const stylesv2::Style& style : stylesv2::styles) {
if (style.category == stylesv2::Category::unknown)
FAIL() << "Marker " << std::quoted(style.marker) << " is not yet categorized properly";
if (style.category < previous_category) {
std::stringstream cat{};
cat << style.category;
Expand Down

0 comments on commit 55bcd32

Please sign in to comment.