From 553c7354c106e7c22cb14d2726624832fd0b9c2d Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 18 Aug 2017 16:31:54 -0700 Subject: [PATCH] Account for the new string-only node structure. The output has to be the same as the user-provided input, as the tree isn't converted to numbers until evaluation. --- core/src/test/java/org/nwapw/abacus/tests/CalculationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/nwapw/abacus/tests/CalculationTests.java b/core/src/test/java/org/nwapw/abacus/tests/CalculationTests.java index 766376c..b210226 100755 --- a/core/src/test/java/org/nwapw/abacus/tests/CalculationTests.java +++ b/core/src/test/java/org/nwapw/abacus/tests/CalculationTests.java @@ -101,7 +101,7 @@ public class CalculationTests { testOutput("2^50", "(2^50)", "112589990684262"); testOutput("7^(-sqrt2*17)", "(7^((sqrt(2)*17))`)", "4.81354609155297814551845300063563"); testEvalError("0^0", "(0^0)"); - testEvalError("(-13)^.9999", "((13)`^0.9999)"); + testEvalError("(-13)^.9999", "((13)`^.9999)"); } }