diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-01 17:56:31 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-01 17:56:31 +0100 |
commit | 2938fe9b43a63b5700233fd29f77b2ca6117bc5b (patch) | |
tree | 81a6eef27e782a6e445faaa0ba8165c3a91446e9 | |
parent | 8292a2a5d9ae59a2101ed7292133ed6eae5bc8a9 (diff) |
Fix parser test 1
-rw-r--r-- | .travis.yml | 11 | ||||
-rw-r--r-- | tests/parser_test.php | 4 |
2 files changed, 4 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index 0b1b208..d128d80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,15 +15,8 @@ addons: firefox: "47.0.1" postgresql: "9.3" -env: - global: - - MOODLE_BRANCH=MOODLE_32_STABLE - - IGNORE_NAMES=xmlrpc-utils.php - matrix: - - DB=pgsql - - DB=mysqli - - +env: + - MOODLE_BRANCH=MOODLE_32_STABLE DB=mysqli IGNORE_PATHS=mobile_src before_install: - phpenv config-rm xdebug.ini diff --git a/tests/parser_test.php b/tests/parser_test.php index a6c3442..fa5fa0f 100644 --- a/tests/parser_test.php +++ b/tests/parser_test.php @@ -42,8 +42,8 @@ class qtype_algebra_parser_test extends advanced_testcase { $p = new qtype_algebra_parser; $expr = $p->parse('sin(2x) + cos(3y)'); - $this->assertEquals(array('x', 'y'), $expr->get_variables()) - $this->assertEquals(array('cos', 'sin'), $expr->get_functions()) + $this->assertEquals(array('x', 'y'), $expr->get_variables()); + $this->assertEquals(array('cos', 'sin'), $expr->get_functions()); $this->assertEquals('\sin(2 x_{}) + \cos(3 y_{}', $exp->tex()); } } |