Skip to content

Tim-tech-gif/Create-bool-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Create-bool-2

fn is_palindrome(x: u32) -> bool #[test] fn test() { let data = [ (123, false), (121, true), (1221, true), ]; data .iter() .for_each(|(n, exp)| { assert_eq!(is_palindrome(*n), *exp); }); }

About

fn is_palindrome(x: u32) -> bool #[test] fn test() { let data = [ (123, false), (121, true), (1221, true), ]; data .iter() .for_each(|(n, exp)| { assert_eq!(is_palindrome(*n), *exp); }); }

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors