spec/00_nmatrix_spec.rb in nmatrix-atlas-0.2.0 vs spec/00_nmatrix_spec.rb in nmatrix-atlas-0.2.1

- old
+ new

@@ -459,9 +459,15 @@ it "should just copy a 1-dimensional #{stype} matrix" do n = NMatrix.new([3], [1,2,3], stype: stype) expect(n.transpose).to eq n expect(n.transpose).not_to be n end + + it "should check permute argument if supplied for #{stype} matrix" do + n = NMatrix.new([2,2], [1,2,3,4], stype: stype) + expect{n.transpose *4 }.to raise_error(ArgumentError) + expect{n.transpose [1,1,2] }.to raise_error(ArgumentError) + end end end context "#dot_product" do [:dense].each do |stype| # list storage transpose not yet implemented