Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions exercises/practice/perfect-numbers/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ description = "Abundant numbers -> Medium abundant number is classified correctl
[ec7792e6-8786-449c-b005-ce6dd89a772b]
description = "Abundant numbers -> Large abundant number is classified correctly"

[05f15b93-849c-45e9-9c7d-1ea131ef7d10]
description = "Abundant numbers -> Perfect square abundant number is classified correctly"

[e610fdc7-2b6e-43c3-a51c-b70fb37413ba]
description = "Deficient numbers -> Smallest prime deficient number is classified correctly"

Expand Down
1 change: 1 addition & 0 deletions exercises/practice/perfect-numbers/test/src/Main.idr
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tests =
, test "Smallest abundant number is classified correctly" (assertEq (classify 12) $ Just Abundant)
, test "Medium abundant number is classified correctly" (assertEq (classify 30) $ Just Abundant)
, test "Large abundant number is classified correctly" (assertEq (classify 33550335) $ Just Abundant)
, test "Perfect square abundant number is classified correctly" (assertEq (classify 196) $ Just Abundant)
, test "Smallest prime deficient number is classified correctly" (assertEq (classify 2) $ Just Deficient)
, test "Smallest non-prime deficient number is classified correctly" (assertEq (classify 4) $ Just Deficient)
, test "Medium deficient number is classified correctly" (assertEq (classify 32) $ Just Deficient)
Expand Down
Loading