From 75c860b6b7fb23413034edb7d5e2469fb8f863e0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 1 Aug 2018 22:09:27 +0200 Subject: [PATCH] Add math bug test --- tests/Math/MathProcessorTest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Math/MathProcessorTest.js b/tests/Math/MathProcessorTest.js index f85f8e6..64fdb83 100644 --- a/tests/Math/MathProcessorTest.js +++ b/tests/Math/MathProcessorTest.js @@ -2,13 +2,14 @@ describe('MathProcessorTest', function () { "use strict"; - describe('testEvaluation', function () + describe('testBasicEvaluation', function () { it('Testing formula evaluation', function () { expect(jsOMS.mathEvaluate('3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3 + 1.5')).toBeCloseTo(4.5, 2); expect(jsOMS.mathEvaluate('3+4*2/(1-5)^2^3+1.5')).toBeCloseTo(4.5, 2); expect(jsOMS.mathEvaluate('invalid')).toBe(null); + expect(jsOMS.mathEvaluate('3+4*2/(1-5^2^3+1.5')).toBe(null); }); }); }); \ No newline at end of file