示例#1
0
 private static void Test(int n, string expected)
 {
     RootTerm.Sqrt(n).ToString().Should().Be(expected, "sqrt({0}) is {1}", n, expected);
 }
示例#2
0
 private static void Test(int a, int b, string expected)
 {
     Test(RootTerm.Sqrt(a), RootTerm.Sqrt(b), expected);
     Test(RootTerm.Sqrt(b), RootTerm.Sqrt(a), expected);
 }