Browse Source

Fix mistake

pull/533/head
5 years ago committed by xpetit
parent
commit
35f180b7d7
  1. 2
      go/tests/iterativefactorial_test/main.go
  2. 4
      go/tests/iterativepower_test/main.go

2
go/tests/iterativefactorial_test/main.go

@ -16,7 +16,7 @@ func iterativeFactorial(nb int) int {
if nb == 0 {
return 1
}
return nb * IterativeFactorial(nb-1)
return nb * iterativeFactorial(nb-1)
}
func main() {

4
go/tests/iterativepower_test/main.go

@ -24,6 +24,6 @@ func main() {
lib.Challenge("IterativePower", student.IterativePower, iterativePower, nb, power)
i++
}
lib.Challenge("IterativePower", student.IterativePower, correct.IterativePower, 0, 0)
lib.Challenge("IterativePower", student.IterativePower, correct.IterativePower, 0, 1)
lib.Challenge("IterativePower", student.IterativePower, iterativePower, 0, 0)
lib.Challenge("IterativePower", student.IterativePower, iterativePower, 0, 1)
}

Loading…
Cancel
Save