コード例 #1
0
 public void FactorOfTest()
 {
     Testing.Equivalent(List(), PrimeFactor(1));
     Testing.Equivalent(List(2), PrimeFactor(2));
     Testing.Equivalent(List(3), PrimeFactor(3));
     Testing.Equivalent(List(2, 2), PrimeFactor(4));
     Testing.Equivalent(List(2, 3), PrimeFactor(6));
     Testing.Equivalent(List(2, 2, 2), PrimeFactor(8));
     Testing.Equivalent(List(3, 3), PrimeFactor(9));
     Testing.Equivalent(List(5, 3, 2, 5, 11), PrimeFactor(5 * 3 * 2 * 5 * 11));
 }