Sha256: 84eb96156f2ec7c36acf9d1fbf9db79a7d5f5ba4120465e5748e19d16fbd3e09

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 Bytes

Contents

require 'minitest/autorun'

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]".b
    actual = TestRenderer.new.test_object(input)

    assert_equal(expected, actual)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
combine_pdf-1.0.29 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.28 test/combine_pdf/renderer_test.rb
combine_pdf-1.0.27 test/combine_pdf/renderer_test.rb