Skip to content

Commit b7fe407

Browse files
committed
Update tests
1 parent cc660b1 commit b7fe407

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/src/app/testqgsmaptoolreshape.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/***************************************************************************
22
testqgsmaptoolreshape.cpp
33
--------------------------------
4-
Date : 2017-121
4+
Date : 2017-12-1
55
Copyright : (C) 2017 by Paul Blottiere
66
Email : paul.blottiere@oslandia.com
77
***************************************************************************
@@ -111,10 +111,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
111111
tool0.reshape( vl.get() );
112112

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

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

119119
vl->rollBack();
120120

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

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

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

139139
vl->rollBack();
140140
}

0 commit comments

Comments
 (0)