diff options
| author | take_cheeze <[email protected]> | 2014-06-13 17:56:36 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-06-14 13:24:49 +0900 |
| commit | f4f968241b1518175192c4f5302c36d420497fa5 (patch) | |
| tree | 7df953c50018f96234d2d408b8dfa54e46b19fd9 /test/pack.rb | |
| parent | a0c4ca24067dc23ecbae59665e83cf49b8fa5bb1 (diff) | |
| download | mruby-f4f968241b1518175192c4f5302c36d420497fa5.tar.gz mruby-f4f968241b1518175192c4f5302c36d420497fa5.zip | |
Add support of little endian float.
Diffstat (limited to 'test/pack.rb')
| -rw-r--r-- | test/pack.rb | 4 |
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 |
