Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Dec 6, 2017
1 parent cc660b1 commit b7fe407
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/src/app/testqgsmaptoolreshape.cpp
@@ -1,7 +1,7 @@
/***************************************************************************
testqgsmaptoolreshape.cpp
--------------------------------
Date : 2017-121
Date : 2017-12-1
Copyright : (C) 2017 by Paul Blottiere
Email : paul.blottiere@oslandia.com
***************************************************************************
Expand Down Expand Up @@ -111,10 +111,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
tool0.reshape( vl.get() );

f0 = vl->getFeature( 1 );
QCOMPARE( f0.geometry().asJson(), QStringLiteral( "{\"type\": \"LineString\", \"coordinates\": [ [0, 0], [1, 1], [1, 2], [2, 1]]}" ) );
QCOMPARE( f0.geometry().asWkt(), QStringLiteral( "LineString (0 0, 1 1, 1 2, 2 1)" ) );

f1 = vl->getFeature( 2 );
QCOMPARE( f1.geometry().asJson(), QStringLiteral( "{\"type\": \"LineString\", \"coordinates\": [ [2, 1], [3, 2], [3, 3], [2, 2]]}" ) );
QCOMPARE( f1.geometry().asWkt(), QStringLiteral( "LineString (2 1, 3 2, 3 3, 2 2)" ) );

vl->rollBack();

Expand All @@ -131,10 +131,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
tool1.reshape( vl.get() );

f0 = vl->getFeature( 1 );
QCOMPARE( f0.geometry().asJson(), QStringLiteral( "{\"type\": \"LineString\", \"coordinates\": [ [0, 0], [1, 1], [1, 2]]}" ) );
QCOMPARE( f0.geometry().asWkt(), QStringLiteral( "LineString (0 0, 1 1, 1 2)" ) );

f1 = vl->getFeature( 2 );
QCOMPARE( f1.geometry().asJson(), QStringLiteral( "{\"type\": \"LineString\", \"coordinates\": [ [1, 2], [2, 1], [3, 2], [3, 3], [2, 2]]}" ) );
QCOMPARE( f1.geometry().asWkt(), QStringLiteral( "LineString (1 2, 2 1, 3 2, 3 3, 2 2)" ) );

vl->rollBack();
}
Expand Down

0 comments on commit b7fe407

Please sign in to comment.