Sha256: f00285a98b4587c586228e3e3c2d23f030298d757705d8f44ff1b7ffbe0ba31a

Contents?: true

Size: 441 Bytes

Versions: 10

Compression:

Stored size: 441 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/workbook'
require 'write_xlsx/package/vml'

class TestWriteAnchor < Test::Unit::TestCase
  def test_write_anchor
    vml = Writexlsx::Package::Vml.new
    vml.__send__('write_anchor', [ 2, 0, 15, 10, 4, 4, 15, 4 ])
    result = vml.instance_variable_get(:@writer).string
    expected = '<x:Anchor>2, 15, 0, 10, 4, 15, 4, 4</x:Anchor>'
    assert_equal(expected, result)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
write_xlsx-0.60.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.59.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.58.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.57.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.56.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.55.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.54.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.51.0 test/package/vml/test_write_anchor.rb
write_xlsx-0.0.4 test/package/vml/test_write_anchor.rb
write_xlsx-0.0.3 test/package/vml/test_write_anchor.rb