algo/go/10_recursion/Factorial_test.go
2019-05-15 22:36:32 +08:00

12 lines
162 B
Go

package Recursion
import "testing"
func TestFac_Factorial(t *testing.T) {
fac := NewFactorial(10)
for i:=1; i<15; i++{
fac.Factorial(i)
fac.Print(i)
}
}