Skip to content

Commit

Permalink
Dev: Add new expression test for '' >= ''
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt authored and LouisGac committed Aug 28, 2017
1 parent 0c9d4e1 commit 4c1b53d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/helpers/ExpressionCoreHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,27 @@ public function notes()
}

/**
*
* Expression: '' >= ''
*/
public function testCompareEmptyNumberAndEmptyString()
{
$sgqa = '563168X136X5376';

$expression = '((563168X136X5376.NAOK >= ""))';

$value = '';

$this->compareExpression($sgqa, $value, $expression);
}


/**
* Expression: '' >= ' '
*/
public function testCompareEmptyNumberAndSpace()
{
$sgqa = '563168X136X5376';

$expression = '((563168X136X5376.NAOK >= " "))';

$value = '';
Expand All @@ -80,6 +95,7 @@ public function testCompareEmptyNumberAndEmptyString()
/**
* When constructing condition, empty string is represented
* as "No answer".
* Expression: '3' >= ' '
*/
public function testCompareNumberAndEmptyString()
{
Expand Down

0 comments on commit 4c1b53d

Please sign in to comment.