From 0d170bce5fb06a9bd3165c126848778a7fe2ac0a Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Fri, 29 Mar 2019 21:54:47 +0530 Subject: add inv trig tests --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index c111bf1..a979e20 100644 --- a/src/main.rs +++ b/src/main.rs @@ -150,4 +150,9 @@ mod tests { let evaled = eval_math_expression("1.2816 + 1 + 1.2816/1.2").unwrap(); assert_eq!(3.3496, evaled); } + #[test] + fn inverse_trignometric_fns() { + let evaled = eval_math_expression("deg(asin(1) + acos(1))").unwrap(); + assert_eq!(90., evaled); + } } -- cgit v1.2.3