Skip to content
Permalink
Browse files

Fix more tests

  • Loading branch information
nyalldawson committed Oct 24, 2017
1 parent 476b1de commit c6d939f1ecd925db0a1082201af2b732e4296ec8
@@ -959,7 +959,7 @@ void TestQgsLayoutMapGrid::annotationFormats()
gridProjected.setAnnotationFormat( QgsLayoutItemMapGrid::CustomFormat );
gridProjected.setAnnotationExpression( QStringLiteral( "(@grid_number/10) || case when @grid_axis ='x' then 'a' else 'b' end" ) );
QCOMPARE( gridProjected.gridAnnotationString( 45, QgsLayoutItemMapGrid::Latitude, expressionContext ), QString( "4.5b" ) );
QCOMPARE( gridProjected.gridAnnotationString( 34, QgsLayoutItemMapGrid::Longitude, expressionContext ), QString( "3.4a" ) );
QCOMPARE( gridProjected.gridAnnotationString( 35, QgsLayoutItemMapGrid::Longitude, expressionContext ), QString( "3.5a" ) );
}

void TestQgsLayoutMapGrid::descendingAnnotations()
Binary file not shown.

0 comments on commit c6d939f

Please sign in to comment.
You can’t perform that action at this time.