summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pack.rb4
1 files changed, 4 insertions, 0 deletions
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