Skip to content
Permalink
Browse files
demonstrate bug in qgsexpression
  • Loading branch information
vmora authored and jef-n committed Feb 8, 2014
1 parent 02409e9 commit eb769f7ff3c4396c07dc23329be5a25d262e1740
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/src/core/testqgsexpression.cpp
@@ -839,6 +839,19 @@ class TestQgsExpression: public QObject
QgsExpression::unsetSpecialColumn( "$var1" );
}

void expression_from_expression()
{
{
QgsExpression e( "my_column" );
QCOMPARE( e.expression() , QgsExpression( e.expression() ).expression() );
}
{
QgsExpression e( "\"my column\"" );
QCOMPARE( e.expression() , QgsExpression( e.expression() ).expression() );
}
}


};

QTEST_MAIN( TestQgsExpression )

0 comments on commit eb769f7

Please sign in to comment.