Sha256: f2e1a8d523bf958bfe358e6d7e51d112462c4c21a9b5d9f86de620f323a63b44

Contents?: true

Size: 775 Bytes

Versions: 7

Compression:

Stored size: 775 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + "/../lib/")
require 'test/unit'
require 'dbf'
require 'common'

class DBaseIIIReadTest < Test::Unit::TestCase
  include CommonTests::Read
  
  def setup
    @controls = {
      :version => "03",
      :has_memo_file => false,
      :memo_file_format => nil,
      :field_count => 31,
      :record_count => 14,
      :record_length => 590,
      :testable_character_field_names => ["Shape"],
      :testable_date_field_names => ["Date_Visit"],
      :testable_integer_field_names => ["Filt_Pos"],
      :testable_float_field_names => ["Max_PDOP"],
      :testable_logical_field_names => [],
      :testable_memo_field_names => []
    }
    @dbf = DBF::Reader.new(File.join(File.dirname(__FILE__),'databases', 'dbase_iii.dbf'))
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dbf-0.4.0 test/dbase_iii_read_test.rb
dbf-0.4.1 test/dbase_iii_read_test.rb
dbf-0.4.2 test/dbase_iii_read_test.rb
dbf-0.4.3 test/dbase_iii_read_test.rb
dbf-0.4.4 test/dbase_iii_read_test.rb
dbf-0.4.5 test/dbase_iii_read_test.rb
dbf-0.4.6 test/dbase_iii_read_test.rb