From 256a9808276e420bc7ee6168f04ab31b6cfe4d44 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Mon, 1 Jan 2018 18:20:43 +0100 Subject: Use Postgres for tests --- tests/parser_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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()); } } -- cgit v1.2.3