Exemplo n.º 1
0
 public void Test_S1IntervalTestBase_AddPoint()
 {
     Assert.Equal(zero, S1Interval.AddPoint(empty, 0));
     Assert.Equal(pi, S1Interval.AddPoint(empty, Math.PI));
     Assert.Equal(mipi, S1Interval.AddPoint(empty, -Math.PI));
     Assert.Equal(pi, S1Interval.AddPoints(empty, Math.PI, -Math.PI));
     Assert.Equal(mipi, S1Interval.AddPoints(empty, -Math.PI, Math.PI));
     Assert.Equal(mid12, S1Interval.AddPoints(empty, mid12.Lo, mid12.Hi));
     Assert.Equal(mid23, S1Interval.AddPoints(empty, mid23.Lo, mid23.Hi));
     Assert.Equal(quad123, S1Interval.AddPoints(quad1, -0.9 * Math.PI, -S2.M_PI_2));
     Assert.True(S1Interval.AddPoint(full, 0).IsFull());
     Assert.True(S1Interval.AddPoint(full, Math.PI).IsFull());
     Assert.True(S1Interval.AddPoint(full, -Math.PI).IsFull());
 }