From 99656366553e3eada13f4f3990ab109e925a108a Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Tue, 2 Jan 2018 14:20:23 +0100 Subject: Update xmlrpc-utils --- tests/parser_test.php | 2 +- tests/questiontype_test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/parser_test.php b/tests/parser_test.php index d5c9f7a..ae6b219 100644 --- a/tests/parser_test.php +++ b/tests/parser_test.php @@ -58,7 +58,7 @@ class qtype_algebra_parser_test extends advanced_testcase { $expr = $p->parse('sin(2x) + cos(3y)'); $this->assertEquals('\sin \left( 2 x_{} \right) + \cos \left( 3 y_{} \right)', $expr->tex()); $expr = $p->parse('sin(4 x) + cos(5 y)'); - $this->assertEquals('\sin \left( 4 x_{} \right) + \cos \left( 5 y_{} \right)', $expr->tex()); + $this->assertEquals('\sin \left( 4 x_{} \right) + \cos \left( 5 y_{} \right)', $expr->tex()); $expr = $p->parse('sin(6*x) + cos(7*y)'); $this->assertEquals('\sin \left( 6 x_{} \right) + \cos \left( 7 y_{} \right)', $expr->tex()); } diff --git a/tests/questiontype_test.php b/tests/questiontype_test.php index 745b7c1..bd53a47 100644 --- a/tests/questiontype_test.php +++ b/tests/questiontype_test.php @@ -68,7 +68,7 @@ class qtype_algebra_test extends advanced_testcase { public function test_get_random_guess_score() { $q = test_question_maker::get_question_data('algebra'); - $q->options->answers[15]->fraction = 0.1; + $q->options->answers[14]->fraction = 0.1; $this->assertEquals(0.1, $this->qtype->get_random_guess_score($q)); } -- cgit v1.2.3