diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-01 18:20:43 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-01 18:20:43 +0100 |
commit | 256a9808276e420bc7ee6168f04ab31b6cfe4d44 (patch) | |
tree | 64436d922f276f40d14cc8110046b63ed94985ba | |
parent | 2938fe9b43a63b5700233fd29f77b2ca6117bc5b (diff) |
Use Postgres for tests
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | tests/parser_test.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index d128d80..8c7fc69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ addons: postgresql: "9.3" env: - - MOODLE_BRANCH=MOODLE_32_STABLE DB=mysqli IGNORE_PATHS=mobile_src + - MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=mobile_src before_install: - phpenv config-rm xdebug.ini diff --git a/tests/parser_test.php b/tests/parser_test.php index fa5fa0f..71a9d77 100644 --- a/tests/parser_test.php +++ b/tests/parser_test.php @@ -43,7 +43,7 @@ class qtype_algebra_parser_test extends advanced_testcase { $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('\sin(2 x_{}) + \cos(3 y_{}', $exp->tex()); + $this->assertEquals(array('sin', 'cos'), $expr->get_functions()); + $this->assertEquals('\sin \left( 2 x_{} \right) + \cos \left( 3 y_{} \right)', $expr->tex()); } } |