diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 14:20:23 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 14:20:23 +0100 |
commit | 99656366553e3eada13f4f3990ab109e925a108a (patch) | |
tree | e84600cfa2c86c6835f494ec8b280042b96efce9 /tests | |
parent | 1acf891ddc1b99ca58990dbb85866069c987c53b (diff) |
Update xmlrpc-utils
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parser_test.php | 2 | ||||
-rw-r--r-- | tests/questiontype_test.php | 2 |
2 files changed, 2 insertions, 2 deletions
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)); } |