Sha256: f28863ffa1891ca8469051a822c6da34238a064c771ea18ef7f101b6372839a7
Contents?: true
Size: 1.55 KB
Versions: 115
Compression:
Stored size: 1.55 KB
Contents
using Xunit; public class PrimeFactorsTest { [Fact] public void Test_1() { Assert.Equal(new int[0], PrimeFactors.For(1)); } [Fact(Skip = "Remove to run test")] public void Test_2() { Assert.Equal(new[] { 2 }, PrimeFactors.For(2)); } [Fact(Skip = "Remove to run test")] public void Test_3() { Assert.Equal(new[] { 3 }, PrimeFactors.For(3)); } [Fact(Skip = "Remove to run test")] public void Test_4() { Assert.Equal(new[] { 2, 2 }, PrimeFactors.For(4)); } [Fact(Skip = "Remove to run test")] public void Test_6() { Assert.Equal(new[] { 2, 3 }, PrimeFactors.For(6)); } [Fact(Skip = "Remove to run test")] public void Test_8() { Assert.Equal(new[] { 2, 2, 2 }, PrimeFactors.For(8)); } [Fact(Skip = "Remove to run test")] public void Test_9() { Assert.Equal(new[] { 3, 3 }, PrimeFactors.For(9)); } [Fact(Skip = "Remove to run test")] public void Test_27() { Assert.Equal(new[] { 3, 3, 3 }, PrimeFactors.For(27)); } [Fact(Skip = "Remove to run test")] public void Test_625() { Assert.Equal(new[] { 5, 5, 5, 5 }, PrimeFactors.For(625)); } [Fact(Skip = "Remove to run test")] public void Test_901255() { Assert.Equal(new[] { 5, 17, 23, 461 }, PrimeFactors.For(901255)); } [Fact(Skip = "Remove to run test")] public void Test_93819012551() { Assert.Equal(new[] { 11, 9539, 894119 }, PrimeFactors.For(93819012551)); } }
Version data entries
115 entries across 115 versions & 1 rubygems