File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
exercises/practice/perfect-numbers Expand file tree Collapse file tree 2 files changed +6
-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 @@ -42,6 +42,9 @@ unittest
4242 // Large abundant number is classified correctly
4343 assert (classify(33_550_335) == Classification.ABUNDANT );
4444
45+ // Perfect square abundant number is classified correctly
46+ assert (classify(196 ) == Classification.ABUNDANT );
47+
4548 // Deficient numbers
4649
4750 // Smallest prime deficient number is classified correctly
You can’t perform that action at this time.
0 commit comments