diff options
author | rbuj <[email protected]> | 2019-04-27 11:50:09 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-04-30 00:07:38 +0200 |
commit | d97327cd31de7d47054ee4caa299de51d9b4349e (patch) | |
tree | 089fd670a4fad869c18aed3690e448e081253242 /src | |
parent | 6d72a61eb8871f28b309030d67617948ac3511b2 (diff) | |
download | mate-calc-d97327cd31de7d47054ee4caa299de51d9b4349e.tar.bz2 mate-calc-d97327cd31de7d47054ee4caa299de51d9b4349e.tar.xz |
Unit tests: pi constant, ln (e^iπ)
Diffstat (limited to 'src')
-rw-r--r-- | src/test-mp-equation.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test-mp-equation.c b/src/test-mp-equation.c index 4404a51..5052fa0 100644 --- a/src/test-mp-equation.c +++ b/src/test-mp-equation.c @@ -313,6 +313,7 @@ test_equations() test("2x²+2xy−12y²", "−88", 0); test("π", "3.141592654", 0); + test("pi", "3.141592654", 0); test("e", "2.718281828", 0); test("z=99", "99", 0); @@ -569,6 +570,7 @@ test_equations() test("(−1)^0.5", "i", 0); test("√−4", "2i", 0); test("e^iπ", "−1", 0); + test("ln (e^iπ)", "3.141592654i", 0); test("log (−10) − (1 + πi÷ln(10))", "0", 0); test("ln (−e) − (1 + πi)", "0", 0); test("sin(iπ÷4) − i×sinh(π÷4)", "0", 0); |