Sha256: 4f866d03a56c28df26ccb6dc6515ee0236d80cee119e5ea5da86f8c17d4573ed

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 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

3 entries across 3 versions & 2 rubygems

Version Path
writeexcel-0.3.1 test/test_00_IEEE_double.rb
writeexcel-0.3.0 test/test_00_IEEE_double.rb
WriteExcel-0.2.0 test/test_00_IEEE_double.rb