dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37314
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19104: Minor
------------------------------------------------------------
revno: 19104
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-05-07 10:22:05 +0200
message:
Minor
modified:
dhis-2/dhis-support/dhis-support-system/src/test/java/org/hisp/dhis/system/util/ExpressionUtilsTest.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/test/java/org/hisp/dhis/system/util/ExpressionUtilsTest.java'
--- dhis-2/dhis-support/dhis-support-system/src/test/java/org/hisp/dhis/system/util/ExpressionUtilsTest.java 2015-05-06 13:36:35 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/test/java/org/hisp/dhis/system/util/ExpressionUtilsTest.java 2015-05-07 08:22:05 +0000
@@ -70,12 +70,14 @@
assertTrue( ExpressionUtils.isTrue( "v1 > 1", vars ) );
assertTrue( ExpressionUtils.isTrue( "v2 < 18", vars ) );
+ assertTrue( ExpressionUtils.isTrue( "v2 < '23'", vars ) );
assertTrue( ExpressionUtils.isTrue( "v3 == 'goat'", vars ) );
assertTrue( ExpressionUtils.isTrue( "v4 == 'horse'", vars ) );
assertTrue( ExpressionUtils.isTrue( "v4 == \"horse\"", vars ) );
assertFalse( ExpressionUtils.isTrue( "v1 < 1", vars ) );
assertFalse( ExpressionUtils.isTrue( "v2 > 18", vars ) );
+ assertFalse( ExpressionUtils.isTrue( "v2 > '23'", vars ) );
assertFalse( ExpressionUtils.isTrue( "v3 == 'cow'", vars ) );
assertFalse( ExpressionUtils.isTrue( "v4 == 'goat'", vars ) );
assertFalse( ExpressionUtils.isTrue( "v4 == \"goat\"", vars ) );