Skip to content

Commit d9d78e3

Browse files
committed
data type #191
1 parent cd664f8 commit d9d78e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/NumSharp.UnitTest/Selection/NDArray.Indexing.Test.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ public void IndexAccessorGetter()
1414

1515
Assert.IsTrue(nd.Storage.GetData<int>(1, 1) == 5);
1616
Assert.IsTrue(nd.Storage.GetData<int>(2, 0) == 8);
17+
}
18+
19+
[TestMethod]
20+
public void NDArrayAccess()
21+
{
22+
var nd = np.arange(4).reshape(2, 2);
1723

24+
var row1 = nd[0];
25+
Assert.AreEqual(row1.GetType(), typeof(NDArray));
26+
// Assert.AreEqual(row1[0][0], 0);
27+
// Assert.AreEqual(row1[0][1], 1);
1828
}
1929

2030
[TestMethod]

0 commit comments

Comments
 (0)