Skip to content

Commit 4401cb7

Browse files
authored
Merge pull request SciRuby#28 from Uditgulati/slice_test_fix
Minor fix in slicing tests
2 parents 2547a63 + 2cebcda commit 4401cb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/nmatrix_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def setup
66
@i = NMatrix.new [2,2],[1, 4.2, 3, 4]
77
@b = NMatrix.new [2,2],[true, true, false, true], :nm_bool
88
@m = NMatrix.new [2,2,2],[1, 2, 3, 4, 5, 6, 7, 8]
9+
@m_int = NMatrix.new [2,2,2],[1, 2, 3, 4, 5, 6, 7, 8], :nm_int
910
@n = NMatrix.new [2,1,2],[1, 2, 3, 4]
1011
@s = NMatrix.new [2, 2],[1, 2, 3, 4]
1112
@s_int = NMatrix.new [2, 2],[1, 2, 3, 4], :nm_int
@@ -56,7 +57,7 @@ def test_accessor_set
5657

5758
def test_slicing
5859
assert_equal @m[0, 0..1, 0..1], @s
59-
assert_equal @m[0, 0..1, 0..1], @s_int
60+
assert_equal @m_int[0, 0..1, 0..1], @s_int
6061
end
6162

6263
end

0 commit comments

Comments
 (0)