Skip to content
Permalink
Browse files
Correct pal labelling expected result
  • Loading branch information
nirvn committed Jul 13, 2021
1 parent 72e0517 commit 846e0aa40727f8023da00e0a80465d8f78884971
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgspallabeling.cpp
@@ -85,7 +85,7 @@ void TestQgsPalLabeling::wrapChar()
QCOMPARE( QgsPalLabeling::splitToLines( "with auto wrap", QString(), 6, false ), QStringList() << "with auto" << "wrap" );

// manual wrap character should take precedence
QCOMPARE( QgsPalLabeling::splitToLines( QStringLiteral( "with auto-wrap and manual-wrap" ), QStringLiteral( "-" ), 12, true ), QStringList() << "with auto" << "wrap and" << "manual" << "wrap" );
QCOMPARE( QgsPalLabeling::splitToLines( QStringLiteral( "with auto-wrap and manual-wrap" ), QStringLiteral( "-" ), 12, true ), QStringList() << "with" << "auto" << "wrap and" << "manual" << "wrap" );
QCOMPARE( QgsPalLabeling::splitToLines( QStringLiteral( "with auto-wrap and manual-wrap" ), QStringLiteral( "-" ), 6, false ), QStringList() << "with auto" << "wrap and" << "manual" << "wrap" );
}

0 comments on commit 846e0aa

Please sign in to comment.