public void Test0() { /* * Exactly four continued fractions, for N≤13, have an odd period. */ var sut = new E064OddPeriodSquareRoots(); Assert.Equal(4, sut.GetNumberOfOddPeriodes(N: 13)); }
public void Solution() { /* * How many continued fractions for N≤10000 have an odd period? */ var sut = new E064OddPeriodSquareRoots(); Assert.Equal(1322, sut.GetNumberOfOddPeriodes(N: 10000)); /* * Congratulations, the answer you gave to problem 64 is correct. * * You are the 19094th person to have solved this problem. */ }
public void TestContinuedFraction23() { var sut = new E064OddPeriodSquareRoots(); Assert.Equal(4, sut.GetPeriodsOfSquareRoot(23)); }
public void Test_ContinuedFractionPeriodes(int number, int expectedPeriodes) { var sut = new E064OddPeriodSquareRoots(); Assert.Equal(expectedPeriodes, sut.GetPeriodsOfSquareRoot(number)); }