Sha256: 66238413e857c37729c882393d20063adf2667487c82a229cc51d13f576831e3

Contents?: true

Size: 343 Bytes

Versions: 34

Compression:

Stored size: 343 Bytes

Contents

# -*- coding: utf-8 -*-
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

34 entries across 34 versions & 3 rubygems

Version Path
writeexcel-1.0.5 test/test_00_IEEE_double.rb
writeexcel-1.0.4 test/test_00_IEEE_double.rb
writeexcel-1.0.3 test/test_00_IEEE_double.rb
writeexcel-1.0.2 test/test_00_IEEE_double.rb
writeexcel-1.0.1 test/test_00_IEEE_double.rb
writeexcel-1.0.0 test/test_00_IEEE_double.rb
writeexcel-0.6.19 test/test_00_IEEE_double.rb
writeexcel-0.6.18 test/test_00_IEEE_double.rb
writeexcel-0.6.17 test/test_00_IEEE_double.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.16/test/test_00_IEEE_double.rb
writeexcel-0.6.16 test/test_00_IEEE_double.rb
writeexcel-0.6.15 test/test_00_IEEE_double.rb
writeexcel-0.6.14 test/test_00_IEEE_double.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/test/test_00_IEEE_double.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/test/test_00_IEEE_double.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/test/test_00_IEEE_double.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/test/test_00_IEEE_double.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/test/test_00_IEEE_double.rb
writeexcel-0.6.13 test/test_00_IEEE_double.rb
ricardoo27-writeexcel-0.6.12.2 test/test_00_IEEE_double.rb