aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-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}