1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-17 16:09:32 -08:00

Add some tests to pow.

This commit is contained in:
Arthur Drobot 2017-08-08 09:45:13 -07:00
parent 4cf4ba98a8
commit f8b3559cec

View File

@ -99,6 +99,9 @@ public class CalculationTests {
testOutput("2^1", "(2^1)", "2"); testOutput("2^1", "(2^1)", "2");
testOutput("2^-1", "(2^(1)`)", "0.5"); testOutput("2^-1", "(2^(1)`)", "0.5");
testOutput("2^50", "(2^50)", "112589990684262"); 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)");
} }
} }