aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-03-29 16:24:47 +0000
committerNerdyPepper <[email protected]>2019-03-29 16:24:47 +0000
commit0d170bce5fb06a9bd3165c126848778a7fe2ac0a (patch)
treedf231b5edc96becee61692432bdd3b7ed0d0b142
parentb27bf74c5f5daf4bbe20416b8a7b521c7a4eacc5 (diff)
add inv trig tests
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
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 {
150 let evaled = eval_math_expression("1.2816 + 1 + 1.2816/1.2").unwrap(); 150 let evaled = eval_math_expression("1.2816 + 1 + 1.2816/1.2").unwrap();
151 assert_eq!(3.3496, evaled); 151 assert_eq!(3.3496, evaled);
152 } 152 }
153 #[test]
154 fn inverse_trignometric_fns() {
155 let evaled = eval_math_expression("deg(asin(1) + acos(1))").unwrap();
156 assert_eq!(90., evaled);
157 }
153} 158}