aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/string/unpack/g_spec.rb
blob: f5bec1534e8f29f3de2d43051e134cff881fb94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
require File.expand_path('../shared/basic', __FILE__)
require File.expand_path('../shared/float', __FILE__)

describe "String#unpack with format 'G'" do
  it_behaves_like :string_unpack_basic, 'G'
  it_behaves_like :string_unpack_double_be, 'G'
end

describe "String#unpack with format 'g'" do
  it_behaves_like :string_unpack_basic, 'g'
  it_behaves_like :string_unpack_float_be, 'g'
end