File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
exercises/practice/perfect-numbers Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ description = "Abundant numbers -> Medium abundant number is classified correctl
2727[ec7792e6-8786-449c-b005-ce6dd89a772b ]
2828description = " Abundant numbers -> Large abundant number is classified correctly"
2929
30+ [05f15b93-849c-45e9-9c7d-1ea131ef7d10 ]
31+ description = " Abundant numbers -> Perfect square abundant number is classified correctly"
32+
3033[e610fdc7-2b6e-43c3-a51c-b70fb37413ba ]
3134description = " Deficient numbers -> Smallest prime deficient number is classified correctly"
3235
Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ fn large_abundant_number_is_classified_correctly() {
5353 assert_eq ! ( output, expected) ;
5454}
5555
56+ #[ test]
57+ #[ ignore]
58+ fn perfect_square_abundant_number_is_classified_correctly ( ) {
59+ let input = 196 ;
60+ let output = classify ( input) ;
61+ let expected = Some ( Classification :: Abundant ) ;
62+ assert_eq ! ( output, expected) ;
63+ }
64+
5665#[ test]
5766#[ ignore]
5867fn smallest_prime_deficient_number_is_classified_correctly ( ) {
You can’t perform that action at this time.
0 commit comments