Sha256: 46f03899bafbc806aa5765f8ad6bb2f4280169ec5172289faf9e55eeea8f9568
Contents?: true
Size: 852 Bytes
Versions: 8
Compression:
Stored size: 852 Bytes
Contents
require 'spec_helper' describe Hilbert do describe 'Vector' do context 'into R' do it do expect( Hilbert.to_r.compile('(1 2 3)') ).to eq( 'c(1, 2, 3)' ) expect( Hilbert.to_r.compile('(1 2 3 4 5 6)') ).to eq( 'c(1, 2, 3, 4, 5, 6)' ) expect( Hilbert.to_r.compile('(1 2 3 4 5 6)') ).to eq( 'c(1, 2, 3, 4, 5, 6)' ) end end context 'into Ruby' do it do expect( Hilbert.to_ruby.compile('(1 2 3)') ).to eq( 'Vector[1, 2, 3]' ) end end context 'into Python' do it do expect( Hilbert.to_python.compile('(1 2 3)') ).to eq( 'array([1, 2, 3])' ) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems