17 if (defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
32 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
37 $this->assertInstanceOf(
'assNumericRange', $instance);
43 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
48 $instance->setLowerLimit($expected);
49 $actual = $instance->getLowerLimit();
52 $this->assertEquals($expected, $actual);
58 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
63 $instance->setUpperLimit($expected);
64 $actual = $instance->getUpperLimit();
67 $this->assertEquals($expected, $actual);
73 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
78 $instance->setOrder($expected);
79 $actual = $instance->getOrder();
82 $this->assertEquals($expected, $actual);
88 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
93 $instance->setPoints($expected);
94 $actual = $instance->getPoints();
97 $this->assertEquals($expected, $actual);
103 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
105 $instance->setLowerLimit(1.00);
106 $instance->setUpperLimit(10.00);
110 $actual = $instance->contains(5.00);
113 $this->assertEquals($expected, $actual);
119 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
121 $instance->setLowerLimit(1.00);
122 $instance->setUpperLimit(10.00);
126 $actual = $instance->contains(15.00);
129 $this->assertEquals($expected, $actual);
135 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
137 $instance->setLowerLimit(1.00);
138 $instance->setUpperLimit(10.00);
142 $actual = $instance->contains(
'Günther');
145 $this->assertEquals($expected, $actual);