Sha256: fe11aab5e2a26e3cb8650a6995528ed350fecbe2fe5da2e728b327f20acb3e1a

Contents?: true

Size: 347 Bytes

Versions: 7

Compression:

Stored size: 347 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Quandl::Operation::Transform do

  context "rdiff_from" do
    
    it "should transform the data correctly" do
      data = [[1,3,5],[4,5,4],[5,15,20]]
      result = Quandl::Operation::Transform.perform(data, :rdiff_from)
      result.should eq [[1,4,3],[4,2,4],[5,0,0]]
    end
    
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
quandl_operation-0.1.8 spec/lib/quandl/operation/transform_spec.rb
quandl_operation-0.1.7 spec/quandl/operation/transform_spec.rb
quandl_operation-0.1.6 spec/quandl/operation/transform_spec.rb
quandl_operation-0.1.5 spec/quandl/operation/transform_spec.rb
quandl_operation-0.1.4 spec/quandl/operation/transform_spec.rb
quandl_operation-0.1.3 spec/quandl/operation/transform_spec.rb
quandl_operation-0.1.2 spec/quandl/operation/transform_spec.rb