Sha256: 78221ddb55ff2cf948d4daee288b49122cae4ffb57af78c65e02a2ea0d57c606

Contents?: true

Size: 328 Bytes

Versions: 9

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'ogr/geometry'

RSpec.describe OGR::UnknownGeometry do
  it 'can be created from a pointer to a geometry' do
    geom_ptr = FFI::OGR::API.OGR_G_CreateGeometry(:wkbPoint)
    geom = described_class.new(geom_ptr)
    expect(geom).to be_a OGR::UnknownGeometry
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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