Skip to content
Permalink
Browse files

fix test

  • Loading branch information
AlisterH committed Mar 20, 2019
1 parent 1612f85 commit f9e90c3d9c8a7619488f96ca52ba7c7fc72e729c
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsproperty.cpp
@@ -1251,7 +1251,7 @@ void TestQgsProperty::colorRampTransformer()
25,
new QgsGradientColorRamp( QColor( 10, 20, 30 ), QColor( 200, 190, 180 ) ),
QColor( 100, 150, 200 ) );
QCOMPARE( t5.toExpression( "5+6" ), QStringLiteral( "coalesce(ramp_color('custom ramp',scale_linear(5+6, 15, 25, 0, 1), '#6496c8')" ) );
QCOMPARE( t5.toExpression( "5+6" ), QStringLiteral( "coalesce(ramp_color('custom ramp',scale_linear(5+6, 15, 25, 0, 1)), '#6496c8')" ) );
t5.setRampName( QStringLiteral( "my ramp" ) );
QCOMPARE( t5.toExpression( "5+6" ), QStringLiteral( "coalesce(ramp_color('my ramp',scale_linear(5+6, 15, 25, 0, 1), '#6496c8')" ) );
}

0 comments on commit f9e90c3

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