12 lines
162 B
Go
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)
|
|
}
|
|
}
|