Sha256: adc05491d3e45d35f5e4eb365723cfeccff70e07e0dfe5af3194ec7445aaa671

Contents?: true

Size: 651 Bytes

Versions: 9

Compression:

Stored size: 651 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'ogr'

RSpec.describe OGR::GeometryCollection25D do
  describe '#type' do
    context 'when created with data' do
      subject { OGR::Geometry.create_from_wkt(wkt) }
      let(:wkt) { 'GEOMETRYCOLLECTION(POINT(4 6 8),LINESTRING(4 6 8,7 10 11))' }

      it 'returns :wkbGeometryCollection25D' do
        expect(subject.type).to eq :wkbGeometryCollection25D
      end
    end

    context 'when created without data' do
      subject { described_class.new }

      it 'returns :wkbGeometryCollection' do
        expect(subject.type).to eq :wkbGeometryCollection
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta15 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta14 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta13 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta12 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta11 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta10 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta9 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb
ffi-gdal-1.0.0.beta8 spec/unit/ogr/geometries/geometry_collection_25d_spec.rb