Sha256: 60ae2cb24f0596edbd88c52a8b22954512cc900792ad59d633a93b238798a288

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

#!/usr/bin/env ruby
#
# Copyright (c) 2006, 2007, 2008, 2009 - R.W. van 't Veer

require 'test/unit'
require 'stringio'
require 'pp'

$:.unshift("#{File.dirname(__FILE__)}/../lib")
require 'exifr'
include EXIFR


def all_test_jpegs
  Dir[f('*.jpg')]
end


def all_test_exifs
  Dir[f('*.exif')]
end

def all_test_tiffs
  Dir[f('*.tif')] + all_test_exifs
end

def f(fname)
  "#{File.dirname(__FILE__)}/data/#{fname}"
end

def assert_literally_equal(expected, actual, *args)
  assert_equal expected.to_s, actual.to_s, *args
end

class Hash
  def to_s
    keys.map{|k| k.to_s}.sort.map{|k| "#{k.inspect} => #{self[k].inspect}" }.join(', ')
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
bogado-exifr-0.10.8 tests/test_helper.rb
remvee-exifr-0.10.8 tests/test_helper.rb
exifr-0.10.9 tests/test_helper.rb
exifr-0.10.8 tests/test_helper.rb