aboutsummaryrefslogtreecommitdiff
path: root/tests/questiontype_test.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2018-01-02 22:49:42 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2018-01-02 22:49:42 +0100
commit1f8c26f25b52d410d126eeeb30f61012094beaaa (patch)
tree2100701a3c96d28b4236f527815ca94a369d3ca0 /tests/questiontype_test.php
parent6e9f189cdba529e41c345abfd26ffecaede65c4b (diff)
Small fix to the parser and more Behat tests
Diffstat (limited to 'tests/questiontype_test.php')
-rw-r--r--tests/questiontype_test.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/questiontype_test.php b/tests/questiontype_test.php
index bd53a47..ee19d6b 100644
--- a/tests/questiontype_test.php
+++ b/tests/questiontype_test.php
@@ -68,8 +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[14]->fraction = 0.1;
- $this->assertEquals(0.1, $this->qtype->get_random_guess_score($q));
+ $this->assertEquals(0, $this->qtype->get_random_guess_score($q));
}
public function test_get_possible_responses() {