//! # vanify::utils::combinatorics tests use vanify::utils::combinatorics; // Should return true if affix is longer than max address length #[test] fn test_is_affix_too_long() { let affix = "0377c6608d7f0c5eaa263c0e120df418120852a01".to_string(); assert_eq!(combinatorics::affix_is_longer_than_address(&affix), true); } // Should return false if affix is shorter than max address length #[test] fn test_is_affix_too_long_false() { let affix = "0377c6608d7f0c5eaa263c0e120df418120852a0".to_string(); assert_eq!(combinatorics::affix_is_longer_than_address(&affix), false); }