spec/shortcuts_spec.rb in nmatrix-0.1.0.rc2 vs spec/shortcuts_spec.rb in nmatrix-0.1.0.rc3
- old
+ new
@@ -87,10 +87,10 @@
end
it "correctly accepts :scale parameter" do
m = NMatrix.random([2,2], dtype: :byte, scale: 255)
m.each do |v|
- expect(v).to be > 0
+ expect(v).to be >= 0
expect(v).to be < 255
end
end
it "only accepts an integer or an array as dimension" do