mdc/test/line_matcher_test.rb
##
# Helper function for test of images
Helper function for test of images
Helper function for test of images
def img(text, alt, location, title, width1, width2)
    img = Parsing::LineMatcher.match(text, '')
    assert_instance_of(Image, img)
    assert_equal(alt, img.alt) if alt
    assert_equal(location, img.location)
    assert_equal(title, img.title) if title
    assert_equal(width1, img.width_slide) if width1
    assert_equal(width2, img.width_plain) if width2
  end
def img ( text , alt , location , title , width1 , width2 ) img = Parsing :: LineMatcher . match ( text , '' ) assert_instance_of ( Image , img ) assert_equal ( alt , img . alt ) if alt assert_equal ( location , img . location ) assert_equal ( title , img . title ) if title assert_equal ( width1 , img . width_slide ) if width1 assert_equal ( width2 , img . width_plain ) if width2 end
Helper function for test of images
Helper function for test of images
# @type [Domsin::Image]
text
<not_specific>
alt
<not_specific>
location
<not_specific>
title
<not_specific>
width1
<not_specific>
width2
<not_specific>