Skip to content
Permalink
Browse files

Add unit test

  • Loading branch information
pblottiere committed Sep 28, 2020
1 parent d1d1569 commit ba33c3a7679e68f8d2b7309bc8efa0cd9da4070b
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/src/core/testqgsexpression.cpp
@@ -1159,6 +1159,7 @@ class TestQgsExpression: public QObject
QTest::newRow( "y point" ) << "y(make_point(2.2,4.4))" << false << QVariant( 4.4 );
QTest::newRow( "z point" ) << "z(make_point(2.2,4.4,6.6))" << false << QVariant( 6.6 );
QTest::newRow( "z not point" ) << "z(geom_from_wkt('LINESTRING(2 0,2 2, 3 2, 3 0)'))" << false << QVariant();
QTest::newRow( "z null point" ) << "z( geom_from_wkt( 'POINT ( 0 0 )' ) )" << false << QVariant();
QTest::newRow( "m point" ) << "m(make_point_m(2.2,4.4,7.7))" << false << QVariant( 7.7 );
QTest::newRow( "m not point" ) << "m(geom_from_wkt('LINESTRING(2 0,2 2, 3 2, 3 0)'))" << false << QVariant();
QTest::newRow( "x line" ) << "x(geom_from_wkt('LINESTRING(2 0,2 2, 3 2, 3 0)'))" << false << QVariant( 2.5 );

0 comments on commit ba33c3a

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