Skip to content

Commit cfce6df

Browse files
committed
Unit test for SciSharp#290
1 parent 3ef0108 commit cfce6df

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/NumSharp.UnitTest/Operations/NDArray.Equals.Test.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,16 @@ public void Compare_Single_To_Byte()
21232123
var a = ((NDArray)new int[] {0, 1, 0, 1, 0, 1}).astype(NPTypeCode.Boolean);
21242124
ret.Array.Should().BeEquivalentTo(a.Array);
21252125
}
2126+
2127+
[TestMethod]
2128+
public void EqualsNull()
2129+
{
2130+
NDArray nd = null;
2131+
if (nd == null)
2132+
Console.WriteLine("yes");
2133+
else
2134+
throw new NotSupportedException();
2135+
}
21262136

21272137
#endif
21282138
}

0 commit comments

Comments
 (0)