blob: 0e4f57ec04b918179122d70b8f315d5a330cd704 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
require_relative '../../../spec_helper'
require_relative '../fixtures/classes'
require_relative 'shared/basic'
require_relative 'shared/float'
little_endian do
describe "String#unpack with format 'D'" do
it_behaves_like :string_unpack_basic, 'D'
it_behaves_like :string_unpack_double_le, 'D'
end
describe "String#unpack with format 'd'" do
it_behaves_like :string_unpack_basic, 'd'
it_behaves_like :string_unpack_double_le, 'd'
end
end
big_endian do
describe "String#unpack with format 'D'" do
it_behaves_like :string_unpack_basic, 'D'
it_behaves_like :string_unpack_double_be, 'D'
end
describe "String#unpack with format 'd'" do
it_behaves_like :string_unpack_basic, 'd'
it_behaves_like :string_unpack_double_be, 'd'
end
end
|