Sha256: 7015ab16958eb3177eebea8efe3ba65004cb3071eccb667d0c32c8cb02752b58
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" require "test/unit" class TC_BIFFWriter < Test::Unit::TestCase def test_IEEE_double teststr = [1.2345].pack("d") hexdata = [0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F] number = hexdata.pack("C8") assert(number == teststr || number == teststr.reverse, "Not Little/Big endian. Give up.") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
writeexcel-0.1.0 | test/test_00_IEEE_double.rb |