math_short/math_short.rs
1use jabba_lib::jmath;
2
3fn main() {
4 assert_eq!(jmath::is_palindrome(101), true);
5 assert_eq!(jmath::is_prime(97), true);
6 assert_eq!(jmath::get_divisors(28), [1, 2, 4, 7, 14, 28]);
7 assert_eq!(jmath::factorial(5), 120);
8 assert_eq!(jmath::factorial_bigint(33).to_string(), "8683317618811886495518194401280000000");
9}