From 4854eb4979efcebfea71a677fa85ff838cde058b Mon Sep 17 00:00:00 2001 From: josdejong Date: Sat, 20 Apr 2013 17:59:57 +0200 Subject: [PATCH] Fixed broken test --- test/function/util.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/function/util.js b/test/function/util.js index 607dbf0f5..c059eedcb 100644 --- a/test/function/util.js +++ b/test/function/util.js @@ -120,13 +120,11 @@ assert.equal(math.myvalue * 2, 84); assert.equal(math.hello('user'), 'hello, user!'); // test whether not overwriting existing functions by default -math.import({pi: 3}); -approxEqual(math.pi, 3.14159); +math.import({myvalue: 10}); +approxEqual(math.myvalue, 42); // test whether overwritten when forced -math.import({pi: 3}, {override: true}); -approxEqual(math.pi, 3); -// restore pi -math.import({pi: Math.pi}, {override: true}); +math.import({myvalue: 10}, {override: true}); +approxEqual(math.myvalue, 10); var parser = math.parser();