Skip to content
Permalink
Browse files

Update cpp tests for QgsDefaultValue

  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent f99044f commit 650b64eba03842ed5af1c2e8d5bd8149dc9a2c2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsfield.cpp
@@ -136,7 +136,7 @@ void TestQgsField::gettersSetters()
field.setAlias( QStringLiteral( "alias" ) );
QCOMPARE( field.alias(), QString( "alias" ) );
field.setDefaultValue( QStringLiteral( "1+2" ) );
QCOMPARE( field.defaultValue(), QString( "1+2" ) );
QCOMPARE( field.defaultValue().expression(), QString( "1+2" ) );
QgsFieldConstraints constraints;
constraints.setConstraint( QgsFieldConstraints::ConstraintNotNull, QgsFieldConstraints::ConstraintOriginProvider );
field.setConstraints( constraints );

0 comments on commit 650b64e

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