Sha256: 13c4d655725e8102fe23a96ade9e660b4872fe6abf918a1902ea5890c3961931

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TC_BIFFWriter < Minitest::Test

  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-1.0.9 test/test_00_IEEE_double.rb
writeexcel-1.0.8 test/test_00_IEEE_double.rb
writeexcel-1.0.7 test/test_00_IEEE_double.rb
writeexcel-1.0.6 test/test_00_IEEE_double.rb