Sha256: 489896ba0adc28a96130d5ead50f8fded57b0053c59425c30b87c8c712626f1b

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe MPFI::ColumnVector, "when dividing to some parts" do
  before(:all) do
    MPFR.set_default_prec(128)
    @vec = MPFI::ColumnVector.new([MPFI.interval(1, 3), MPFI.interval(-5, -4), MPFI.interval(2, 5)])
  end

  it "should return divided boxes." do
    size = MPFR.new('0.5')
    ary = @vec.subdivision_by_size(size)
    ary.size.should == 48
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-mpfi-0.0.5 spec/mpfi_matrix/mpfi_vector_spec.rb
ruby-mpfi-0.0.4 spec/mpfi_matrix/mpfi_vector_spec.rb
ruby-mpfi-0.0.3 spec/mpfi_matrix/mpfi_vector_spec.rb
ruby-mpfi-0.0.2 spec/mpfi_matrix/mpfi_vector_spec.rb