From f4f968241b1518175192c4f5302c36d420497fa5 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Fri, 13 Jun 2014 17:56:36 +0900 Subject: Add support of little endian float. --- test/pack.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/pack.rb b/test/pack.rb index 7789fb446..2d754dfc1 100644 --- a/test/pack.rb +++ b/test/pack.rb @@ -88,3 +88,7 @@ end assert('issue #1') do [1, 2].pack("nn") == "\000\001\000\002" end + +assert 'pack float' do + assert_equal "\x00\x00@@", [3.0].pack('e') +end -- cgit v1.2.3