$this->assertTrue($this->matchCondition->match('[globalVar = LIT:10.1 == 10.1]'));
}
+ /**
+ * Tests whether numerical comparison matches.
+ * @test
+ */
+ public function globalVarConditionMatchesOnEqualExpressionWithMultipleValues() {
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:10 = 10|20|30]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:10.1 = 10.1|20.2|30.3]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:20 = 10|20|30]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:20.2 = 10.1|20.2|30.3]'));
+
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:10 == 10|20|30]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:10.1 == 10.1|20.2|30.3]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:20 == 10|20|30]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:20.2 == 10.1|20.2|30.3]'));
+ }
+
/**
* Tests whether numerical comparison matches.
* @test
$this->assertTrue($this->matchCondition->match('[globalVar = LIT:10.1 != 10.2]'));
}
+ /**
+ * Tests whether numerical comparison matches.
+ * @test
+ */
+ public function globalVarConditionMatchesOnNotEqualExpressionWithMultipleValues() {
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:10 != 20|30]'));
+ $this->assertTrue($this->matchCondition->match('[globalVar = LIT:10.1 != 10.2|20.3]'));
+ }
+
/**
* Tests whether numerical comparison matches.
* @test