aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/parser_test.php2
-rw-r--r--tests/questiontype_test.php2
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));
}