Skip to content

Commit 218d600

Browse files
perfect-numbers: test 196
1 parent c6c0062 commit 218d600

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

exercises/practice/perfect-numbers/.meta/tests.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ description = "Abundant numbers -> Medium abundant number is classified correctl
2727
[ec7792e6-8786-449c-b005-ce6dd89a772b]
2828
description = "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]
3134
description = "Deficient numbers -> Smallest prime deficient number is classified correctly"
3235

exercises/practice/perfect-numbers/runner.mips

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.data
1010

1111
# number of test cases
12-
n: .word 13
12+
n: .word 14
1313
# input values (word sized ints)
1414
ins: .word
1515
6,
@@ -18,6 +18,7 @@ ins: .word
1818
12,
1919
30,
2020
33550335,
21+
196,
2122
2,
2223
4,
2324
32,
@@ -33,6 +34,7 @@ outs: .word
3334
2, # abundant,
3435
2, # abundant,
3536
2, # abundant,
37+
2, # abundant,
3638
3, # deficient,
3739
3, # deficient,
3840
3, # deficient,

0 commit comments

Comments
 (0)