public void Min_nuint(Double expected, UInt32[] values) { nuint[] vals = null; if (values is not null) { vals = new nuint[values.Length]; for (nint i = 0; i < values.Length; i++) { vals[i] = (nuint)values[i]; } } BoundedArray <nuint> array = values is not null ? new BoundedArray <nuint>(vals) : null; Assert.Equal(expected, array.Min()); }
public void Min_Double(Double expected, Double[] values) { BoundedArray <Double> array = values is not null ? new BoundedArray <Double>(values) : null; Assert.Equal(expected, array.Min()); }
public void Min_UInt64(Double expected, UInt64[] values) { BoundedArray <UInt64> array = values is not null ? new BoundedArray <UInt64>(values) : null; Assert.Equal(expected, array.Min()); }
public void Min_Int32(Double expected, Int32[] values) { BoundedArray <Int32> array = values is not null ? new BoundedArray <Int32>(values) : null; Assert.Equal(expected, array.Min()); }
public void Min_UInt16(Single expected, UInt16[] values) { BoundedArray <UInt16> array = values is not null ? new BoundedArray <UInt16>(values) : null; Assert.Equal(expected, array.Min()); }
public void Min_Byte(Single expected, Byte[] values) { BoundedArray <Byte> array = values is not null ? new BoundedArray <Byte>(values) : null; Assert.Equal(expected, array.Min()); }