Sha256: 1956f4524c55bbe5c0070022d80e524fbae5038343ef50738782ade43e818e6e
Contents?: true
Size: 585 Bytes
Versions: 4
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper.rb' # Tests if interpreter is JRuby describe Daru::Vector do context ".initialize" do it "creates a vector object with an MDArray" do vector = Daru::Vector.new(MDArray.double([5], [1,2,3,4,5]), :uhura) expect(vector[1]) .to eq(2) expect(vector.name).to eq(:uhura) end it "creates a vector object with a Hash with different values" do vector = Daru::Vector.new({ sulu: MDArray.double([5], [1,2,3,4,5])}) expect(vector[1]) .to eq(2) expect(vector.name).to eq(:sulu) end end end if RUBY_ENGINE == 'jruby'
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
daru-0.0.2.3 | spec/jruby/vector_spec.rb |
daru-0.0.2.2 | spec/jruby/vector_spec.rb |
daru-0.0.2.1 | spec/jruby/vector_spec.rb |
daru-0.0.2 | spec/jruby/vector_spec.rb |