From f8b3559cec4ce9be2078f2e9163c10bce940d44e Mon Sep 17 00:00:00 2001 From: Arthur Drobot Date: Tue, 8 Aug 2017 09:45:13 -0700 Subject: [PATCH] Add some tests to pow. --- src/test/java/org/nwapw/abacus/tests/CalculationTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/nwapw/abacus/tests/CalculationTests.java b/src/test/java/org/nwapw/abacus/tests/CalculationTests.java index dbf0bc7..938b091 100755 --- a/src/test/java/org/nwapw/abacus/tests/CalculationTests.java +++ b/src/test/java/org/nwapw/abacus/tests/CalculationTests.java @@ -99,6 +99,9 @@ public class CalculationTests { testOutput("2^1", "(2^1)", "2"); testOutput("2^-1", "(2^(1)`)", "0.5"); 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)"); } }