There was an error while loading. Please reload this page.
2 parents 2547a63 + 2cebcda commit 4401cb7Copy full SHA for 4401cb7
test/nmatrix_test.rb
@@ -6,6 +6,7 @@ def setup
6
@i = NMatrix.new [2,2],[1, 4.2, 3, 4]
7
@b = NMatrix.new [2,2],[true, true, false, true], :nm_bool
8
@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
10
@n = NMatrix.new [2,1,2],[1, 2, 3, 4]
11
@s = NMatrix.new [2, 2],[1, 2, 3, 4]
12
@s_int = NMatrix.new [2, 2],[1, 2, 3, 4], :nm_int
@@ -56,7 +57,7 @@ def test_accessor_set
56
57
58
def test_slicing
59
assert_equal @m[0, 0..1, 0..1], @s
- assert_equal @m[0, 0..1, 0..1], @s_int
60
+ assert_equal @m_int[0, 0..1, 0..1], @s_int
61
end
62
63
0 commit comments