Sha256: e9da2082bd525655f478d49016e0a13d70242a4c75115664174311dab9dc15b8

Contents?: true

Size: 331 Bytes

Versions: 4

Compression:

Stored size: 331 Bytes

Contents

require 'helper'

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

4 entries across 4 versions & 1 rubygems

Version Path
writeexcel-0.3.5 test/test_00_IEEE_double.rb
writeexcel-0.3.4 test/test_00_IEEE_double.rb
writeexcel-0.3.3 test/test_00_IEEE_double.rb
writeexcel-0.3.2 test/test_00_IEEE_double.rb