Example #1
0
 public void MedianTest()
 {
     Assert.Equal(double.MaxValue, MMath.Median(new[] { double.MaxValue }));
     Assert.Equal(double.MaxValue, MMath.Median(new[] { double.MaxValue, double.MaxValue }));
     Assert.Equal(3, MMath.Median(new[] { double.MaxValue, 3, double.MinValue }));
 }