public void Arange_IntTypeStopArgOnly_ReturnIntegerTypeNdArray() { // arrange & action var array = NumCs.Arange(10); // assert Assert.IsInstanceOfType(array, typeof(NdArray <int>)); }
public void Arange_IntOneElement_ReturnIntegerTypeNdArray() { // arrange & action var array = NumCs.Arange(1); // assert Assert.IsInstanceOfType(array, typeof(NdArray <int>)); }
public void Arange_DoubleTypeStopArgOnly_ReturnDoubleTypeNdArray() { // arrange & action var array = NumCs.Arange(10.0); // assert Assert.IsInstanceOfType(array, typeof(NdArray <double>)); }
public void Arange_IntTypeFullArgs_ReturnIntegerTypeNdArray() { // arrange & action var array = NumCs.Arange(0, 10, 1); // assert Assert.IsInstanceOfType(array, typeof(NdArray <int>)); }
public void Arange_DoubleTypeFullArgs_ReturnDoubleTypeNdArray() { // arrange & action var array = NumCs.Arange(0.0, 10.0, 1.0); // assert Assert.IsInstanceOfType(array, typeof(NdArray <double>)); }