summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/unpack/g_spec.rb
blob: ffc423b152526ecfa2532e5106ff2ef6bbc0ddea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative '../../../spec_helper'
require_relative '../fixtures/classes'
require_relative 'shared/basic'
require_relative 'shared/float'

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