test/tools/test_msgcat.rb in gettext-3.2.7 vs test/tools/test_msgcat.rb in gettext-3.2.8

- old
+ new

@@ -559,9 +559,25 @@ "PO-Revision-Date: UPDATED-PO-REVISION-DATE\\n" "MIME-Version: 1.0\\n" PO end + def test_no_po_revision_date + po = run_msgcat([<<-PO], "--update-po-revision-date") +msgid "" +msgstr "" +"Language: ja\\n" +"MIME-Version: 1.0\\n" + PO + assert_equal(<<-PO, normalize_result(po)) +msgid "" +msgstr "" +"Language: ja\\n" +"MIME-Version: 1.0\\n" +"PO-Revision-Date: UPDATED-PO-REVISION-DATE\\n" + PO + end + private def normalize_result(result) result.gsub(/"PO-Revision-Date: (.+?)\\n"/) do po_revision_date = $1 if po_revision_date == @po_revision_date