From: pichetp Date: Mon, 12 Oct 2009 22:23:54 +0000 (+0000) Subject: MDL-20541 Removing two test of apply units() function no more valid wtih the new... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8f542d6c6a234cfb55f2fdc07b7aeddcb5ce96a1;p=moodle.git MDL-20541 Removing two test of apply units() function no more valid wtih the new code. --- diff --git a/question/type/numerical/simpletest/testquestiontype.php b/question/type/numerical/simpletest/testquestiontype.php index c60fd200ca..f425c033b6 100644 --- a/question/type/numerical/simpletest/testquestiontype.php +++ b/question/type/numerical/simpletest/testquestiontype.php @@ -137,9 +137,9 @@ class question_numerical_qtype_test extends UnitTestCase { $this->assertWithinMargin($this->qtype->apply_unit('100m', $units), 100, $this->tolerance); $this->assertWithinMargin($this->qtype->apply_unit('1cm', $units), 0.01, $this->tolerance); $this->assertWithinMargin($this->qtype->apply_unit('12inch', $units), .3048, $this->tolerance); - $this->assertIdentical($this->qtype->apply_unit('1km', $units), false); + // $this->assertIdentical($this->qtype->apply_unit('1km', $units), false); $this->assertWithinMargin($this->qtype->apply_unit('-100', array()), -100, $this->tolerance); - $this->assertIdentical($this->qtype->apply_unit('1000 miles', array()), false); + // $this->assertIdentical($this->qtype->apply_unit('1000 miles', array()), false); } // function test_backup() {