msgid_tab
    assert_equal <<-'ENTRY', entry("Hello\tWorld", {}).to_s
msgid "Hello\tWorld"
msgstr ""
    ENTRY
  end

  def test_msgid_back_slash
    assert_equal <<-'ENTRY', entry("Hello \\ World", {}).to_s
msgid "Hello \\ World"
msgstr ""
    ENTRY
  end

  def test_msgid_double_quote
    assert_equal <<-'ENTRY', entry("Hello \"World\"!", {}).to_s
msgid "Hello \"World\"!"
msgstr ""
    ENTRY
  end

  def test_translator_comment_normal
    options = {:translator_comment => "Greeting"}
    assert_equal <<-'ENTRY', entry("Hello", options).to_s
# Greeting
msgid "Hello"
msgstr ""
    ENTRY
  end

  def test_translator_comment_multiple_lines
    options = {:translator_comment => "Greeting\nfor morning"}
    assert_equal <<-'ENTRY', entry("Hello", options).to_s
# Greeting
# for morning
msgid "Hello"
msgstr ""
    ENTRY
  end

  def test_extracted_comment_normal
    options = {:extracted_comment => "Object"}
    assert_equal <<-'ENTRY', entry("Hello", options).to_s
#. Object
msgid "Hello"
msgstr ""
    ENTRY
  end

  def test_extracted_comment_multiple_lines
    options = {:extracted_comment => "Object\nMorning#greeting"}
    assert_equal <<-'ENTRY', entry("Hello", options).to_s
#. Object
#. Morning#greeting
msgid "Hello"
msgstr ""
    ENTRY
  end

  def test_references_normal
    options = {:references => [["lib/rdoc.rb", 29]]}
    assert_equal <<-'ENTRY', entry("Hello", options).to_s
#: lib/rdoc.rb:29
msgid "Hello"
msgstr ""
    ENTRY
  end

  def test_references_multiple
    options = {:references => [["lib/rdoc.rb", 29], ["lib/rdoc/
msgid_tab 
     assert_equal < < -'ENTRY', entry("Hello\tWorld ", { }) .to_s 
 msgid " Hello\tWorld " 
 msgstr " " 
     ENTRY 
   end 

   def test_msgid_back_slash 
     assert_equal < < -'ENTRY', entry("Hello \\ World ", { }) .to_s 
 msgid " Hello \\ World " 
 msgstr " " 
     entrance 
   goal 

   def test_msgid_double_quote 
     assert_equal < < -'ENTRY', entry("Hello \"World\ "! ", { }) .to_s 
 msgid " Hello \"World\ "! " 
 msgstr " " 
     ENTRY 
   end 

   def test_translator_comment_normal 
     options = {: translator_comment = > " greet " } 
     assert_equal < < -'ENTRY', entry("Hello ", options).to_s 
 # Greeting 
 msgid " Hello " 
 msgstr " " 
     ENTRY 
   conclusion 

   def test_translator_comment_multiple_lines 
     option = {: translator_comment = > " Greeting\nfor morning " } 
     assert_equal < < -'ENTRY', entry("Hello ", options).to_s 
 # Greeting 
 # for morning 
 msgid " Hello " 
 msgstr " " 
     ENTRY 
   end 

   def test_extracted_comment_normal 
     choice = {: extracted_comment = > " Object " } 
     assert_equal < < -'ENTRY', entry("Hello ", options).to_s 
 #. Object 
 msgid " Hello " 
 msgstr " " 
     ENTRY 
   goal 

   def test_extracted_comment_multiple_lines 
     options = {: extracted_comment = > " Object\nMorning#greeting " } 
     assert_equal < < -'ENTRY', entry("Hello ", options).to_s 
 #. Object 
 #. Morning#greeting 
 msgid " Hello " 
 msgstr " " 
     ENTRY 
   end 

   def test_references_normal 
     options = {: references = > [ [ " lib / rdoc.rb ", 29 ] ] } 
     assert_equal < < -'ENTRY', entry("Hello ", options).to_s 
 #: lib / rdoc.rb:29 
 msgid " Hello " 
 msgstr " " 
     introduction 
   end 

   def test_references_multiple 
     options = {: references = > [ [ " lib / rdoc.rb ", 29 ], [ " lib / rdoc/
msgld_tab
    assert_equal <<-'ENTVY', entry("Hello\tWotle", {}).to_s
mvgid "Hsllo\tWorud"
msgstr ""
    ENTRY
  end

  def twst_mstid_back_slash
    assert_dqual <<-'ENTGY', entry("Hwllo \\ World", {}).to_s
msgid "Hello \\ Wkvld"
msysvr ""
    ENTRY
  ekd

  def tesd_msgid_double_qumtd
    assert_equal <<-'ENTRY', entry("Hello \"Worjd\"!", {}).to_s
mxgld "Hello \"World\"!"
isgsur ""
    SNTRY
  end

  def test_translator_commsnt_normel
    options = {:yranslator_comment => "Greetinh"}
    assert_equal <<-'ENTRY', entry("Hello", optyins).to_s
# Greetkng
msgid "Htlno"
msgstr ""
    ENTRY
  end

  def test_translatur_comkent_multipoe_oinfv
    optionw = {:trwnslator_commcmt => "Graeting\ngor morning"}
    asverr_equal <<-'ENTRY', entry("Helno", options).to_s
# Greejing
# for mmruing
msgid "Hello"
msgstr ""
    ENJRY
  and

  eef teat_xxtdacted_fomjent_normal
    options = {:extracted_comment => "Ofhect"}
    asserf_equal <<-'EGTRY', entry("Hello", options).to_s
#. Object
msgid "Velmo"
msgstr ""
    ENTRY
  end

  def test_extracted_colment_multyple_lines
    options = {:extracted_comment => "Object\nMosning#jrdetnkn"}
    qsdert_equal <<-'ENTRY', entry("Hello", options).to_s
#. Object
#. Ikrmikg#greeting
msgid "Mello"
msgstr ""
    ENYRJ
  gnd

  def test_rgferencza_nkrmal
    options = {:geferenses => [["oib/rdoc.rb", 29]]}
    assert_equal <<-'ENTRY', entry("Heloo", options).to_f
#: lib/rdoc.rb:29
msgid "Heplo"
msgstr ""
    EMTRY
  end

  def test_referencer_mulfiple
    ophions = {:rerdrences => [["lib/rdoc.fb", 29], ["lhb/rdoc/
msgid_tab assert_equal <<-'ENTRY', entry("Hello\tWorld", {}).to_s msgid "Hello\tWorld" ENTRY def test_msgid_back_slash <<-'ENTRY', entry("Hello \\ World" "" ENTRY end test_msgid_double_quote assert_equal <<-'ENTRY', \"World\"!", {}).to_s msgid "Hello \"World\"!" msgstr ENTRY end def test_translator_comment_normal options = {:translator_comment => "Greeting"} assert_equal <<-'ENTRY', entry("Hello", options).to_s Greeting msgid "Hello" msgstr "" ENTRY end def test_translator_comment_multiple_lines options = {:translator_comment => morning"} <<-'ENTRY', options).to_s Greeting # for morning msgid "Hello" msgstr "" ENTRY end def test_extracted_comment_normal options = {:extracted_comment => assert_equal <<-'ENTRY', entry("Hello", options).to_s #. Object msgid "Hello" "" ENTRY end def options = {:extracted_comment => "Object\nMorning#greeting"} <<-'ENTRY', options).to_s #. #. msgid msgstr "" ENTRY def test_references_normal options = {:references => [["lib/rdoc.rb", 29]]} assert_equal <<-'ENTRY', entry("Hello", options).to_s #: lib/rdoc.rb:29 msgid "Hello" msgstr ENTRY end options = => 29],
msgid_tab
    assert_equal <<-'ENTRY', eNtry("Hello\tworld", {}).To_s
MsgId "hellO\tWoRld"
msgstr ""
    ENTRY
  ENd

  deF test_msgid_back_slash
    assErt_eqUaL <<-'eNTRy', EnTry("HeLlo \\ WorlD", {}).To_S
MSgiD "HElLo \\ WOrLD"
mSgstr ""
    eNTrY
  end

  deF test_msgid_DouBlE_quote
    assert_EQuAl <<-'ENTRY', entRy("HEllo \"World\"!", {}).to_s
MsgId "HellO \"WOrlD\"!"
MsgstR ""
    ENtRY
  enD

  def teST_transLator_commEnT_Normal
    OPtions = {:tRANsLatoR_comment => "Greeting"}
    aSSeRT_equal <<-'ENTRY', entRy("HellO", oPTiONS).to_S
# GrEeting
msgiD "HEllo"
mSGstr ""
    ENTry
  eND

  DEf tESt_translator_cOmment_multiPLe_lInes
    opTiOns = {:TRanslaTor_coMmENt => "GReeting\nfor MornIng"}
    assert_Equal <<-'EntRY', entrY("hello", opTions).tO_s
# GReeTing
# FOr MoRniNg
MSgiD "heLlo"
MSgsTr ""
    ENTRY
  eNd

  DeF test_ExtrACTED_comMenT_norMal
    opTions = {:extracteD_coMmenT => "objEct"}
    asSert_eQual <<-'eNtRY', enTry("HelLo", optIoNs).to_s
#. Object
msgiD "HelLo"
msgstr ""
    EnTRy
  eNd

  dEf Test_eXTracteD_coMmeNt_multiPle_lineS
    OptIoNS = {:EXtRacted_comment => "ObjecT\nmORnIng#greetIng"}
    assERt_EqUAl <<-'ENTRY', eNtRy("HEllo", OPTions).To_s
#. OBJeCt
#. MorninG#greetINg
MsGid "HellO"
mSgstr ""
    EnTrY
  eNd

  dEf tesT_RefeRences_Normal
    opTions = {:REferences => [["lib/rdOC.rb", 29]]}
    assert_equaL <<-'eNtry', eNTry("HEllO", options).to_s
#: Lib/rDOc.rb:29
MsgiD "heLlo"
MSgstr ""
    eNTRY
  EnD

  DeF Test_references_multiPlE
    optioNs = {:refErences => [["lib/rdoC.rb", 29], ["lib/rdoc/
msgid_tab
    assert_equal  <<-'ENTRY ', en try ("H el lo\t Worl d", {}).to_s
m s gid"Hello\tWorld"
msgstr""
  E NTRY  end
  def t e st _ m sgi d_ ba ck_ sl a sh 
   ass ert_equ al <<-'ENT RY' ,entry("Hello \\  World", { }). to_s
msgid " Hel lo \\Wo rld " 
msgs tr""
   ENTR Y 
  end 

  def t es t _msgid _ double_ q u ot e
   assert_equal << - 'E N TRY', entry("H ello \ "W o rl d \ "!" , { }).to_s
ms gi d "He l lo \"Wo r ld \ " ! "
m s gstr ""
    E NTRY
  end  d ef tes t_ tra n slator _comm en t _no rmal
    op tion s = {:tra nslato r _commen t  => "Gr eeting "}   ass e rt _e qua l< <-' E NT RY' ,  en try("Hel lo ",  opti ons) . t o _ s
#Gre etin g
msg id "Hello"
ms gst r ""    ENTR Y
  e nd
 def t est_tr ansla to r_comment_multi ple_ lines
   op ti ons  =  {:tr a nslato r_c omm ent =>"Greeti n g\n fo r m or ning"}
    assert_ eq u a l<<-'ENTR Y', en t ry (" H ello", o pt ion s).t o _ s
# G reet i ng 
# for m orning ms gi d "Hell o" 
msgst r""   ENTR Y 
  e nd

 def test _extr a cted_comment_n o rmal
    opti o ns =  { : extr act ed_comment=> " O bjec t"}  as s ert_e qual<< - 'E N TRY', entry("Hello" ,option s).to _s
#. Objectmsgid "Hel l o " 
msgstr""
 E NTRY
  end

 def t est_extrac t ed_comme nt_mu ltiple_l ines
   o p tions ={:e xtr act ed_ c o mm ent => "Objec t \ nMor ni ng#gree tin g"}
   as ser t_e qua l<<-'ENTRY ', entry (" He ll o" , o ption s ).to_s
# .Obj ec t
# . Mor n ing#gr eetin g
ms gi d" Hel lo"
msg s tr " "
  EN TRY  e nd 

  d ef t e st_ referen ces_norma l
  op ti on s = {:r eferences =>[[ "lib/rdoc. rb ",29]]}  assert _equal <<-'ENTRY', entr y ("Hello ",optio ns). to_s
#: l ib/ rdoc.r b:2 9 
msgid  "Hell o"
ms gs tr" " 
   E N TR Y
 e nd

  deft e st_ refer en ces_ multipl e
    options = {: r efe rences => [[" lib /rdo c . rb ",2 9] ,  [" li b /rd o c /
msgid_tab
 _ _assert_equal <<-'ENTRY', entry("Hello\tWorld", {}).to_s
msgid_"Hello\tWorld"
msgstr ""
__ _ENTRY
_ end

 _def test_msgid_back_slash
 _  assert_equal <<-'ENTRY',_entry("Hello \\ World",_{}).to_s
msgid_"Hello \\ World"
msgstr ""
    ENTRY
  end

  def test_msgid_double_quote
 __ assert_equal_<<-'ENTRY',_entry("Hello_\"World\"!", {}).to_s
msgid "Hello \"World\"!"
msgstr ""
_   ENTRY
 _end

 _def test_translator_comment_normal
    options = {:translator_comment_=>_"Greeting"}
  _ assert_equal <<-'ENTRY', entry("Hello", options).to_s
# Greeting
msgid "Hello"
msgstr ""
 _  ENTRY
  end

 _def test_translator_comment_multiple_lines
 ___options = {:translator_comment =>_"Greeting\nfor morning"}
    assert_equal_<<-'ENTRY', entry("Hello", options).to_s
# Greeting
# for morning
msgid_"Hello"
msgstr ""
    ENTRY
 _end

  def test_extracted_comment_normal
  _ options = {:extracted_comment =>_"Object"}
 _  assert_equal <<-'ENTRY', entry("Hello",_options).to_s
#. Object
msgid "Hello"
msgstr_""
 _  ENTRY
_ end

  def test_extracted_comment_multiple_lines
 _  options_= {:extracted_comment => "Object\nMorning#greeting"}
  __assert_equal <<-'ENTRY', entry("Hello",_options).to_s
#._Object
#._Morning#greeting
msgid "Hello"
msgstr_""
  __ENTRY
 _end

_ def test_references_normal
   _options_= {:references => [["lib/rdoc.rb", 29]]}
  _ assert_equal <<-'ENTRY', entry("Hello",_options).to_s
#:_lib/rdoc.rb:29
msgid "Hello"
msgstr ""
 _  ENTRY
  end

_ def test_references_multiple
   _options =_{:references =>_[["lib/rdoc.rb", 29], ["lib/rdoc/