Skip to content

Commit

Permalink
Divisor: Added failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsanjoseph committed Dec 26, 2021
1 parent 746ede5 commit 9c62b1f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions riemann/divisor.go
@@ -0,0 +1,5 @@
package riemann

func DivisorSum(n int) int {
return 0
}
14 changes: 14 additions & 0 deletions riemann/divisor_test.go
@@ -0,0 +1,14 @@
package riemann

import (
"fmt"
"testing"
)

func TestDivisorSum(t *testing.T) {
sum := DivisorSum(192)
fmt.Println(sum)
if sum != 72 {
t.Fatal("Divisor sum doesn't match!")
}
}

0 comments on commit 9c62b1f

Please sign in to comment.