File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,34 +36,34 @@ mod tests {
3636
3737 #[ test]
3838 fn standard_palindrome ( ) {
39- assert_eq ! ( true , is_palindrome( 121 ) ) ;
39+ assert ! ( is_palindrome( 121 ) ) ;
4040 }
4141
4242 #[ test]
4343 fn standard_non_palindrome ( ) {
44- assert_eq ! ( false , is_palindrome( 123 ) ) ;
44+ assert ! ( ! is_palindrome( 123 ) ) ;
4545 }
4646
4747 #[ test]
4848 fn single_digit ( ) {
4949 // Single digits are always palindromes
50- assert_eq ! ( true , is_palindrome( 7 ) ) ;
50+ assert ! ( is_palindrome( 7 ) ) ;
5151 }
5252
5353 #[ test]
5454 fn zero ( ) {
5555 // Zero is a palindrome
56- assert_eq ! ( true , is_palindrome( 0 ) ) ;
56+ assert ! ( is_palindrome( 0 ) ) ;
5757 }
5858
5959 #[ test]
6060 fn large_palindrome ( ) {
61- assert_eq ! ( true , is_palindrome( 123454321 ) ) ;
61+ assert ! ( is_palindrome( 123454321 ) ) ;
6262 }
6363
6464 #[ test]
6565 fn number_ending_in_zero ( ) {
6666 // No number > 0 that ends in 0 can be a palindrome
67- assert_eq ! ( false , is_palindrome( 120 ) ) ;
67+ assert ! ( ! is_palindrome( 120 ) ) ;
6868 }
6969}
You can’t perform that action at this time.
0 commit comments