Sha256: 8c6756768e2aad6cb7f9820a13c453073be41fec4a00658304b386a6fb884031

Contents?: true

Size: 504 Bytes

Versions: 11

Compression:

Stored size: 504 Bytes

Contents

require 'bundler/setup'
require 'minitest/autorun'
require 'combine_pdf/renderer'

class CombinePDFRendererTest < Minitest::Test

  class TestRenderer
    include CombinePDF::Renderer

    def test_object(object)
      object_to_pdf(object)
    end
  end

  def test_numeric_array_to_pdf
    input = [1.234567, 0.000054, 5, -0.000099]
    expected = "[1.234567 0.000054 5 -0.000099]".force_encoding('BINARY')
    actual = TestRenderer.new.test_object(input)

    assert_equal(expected, actual)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
combine_pdf-1.0.22 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.21 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.20 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.19 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.18 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.16 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.15 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.14 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.13 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.12 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.11 test/combine_pdf/renderer_test.rb