test/tools/test_msgcat.rb in gettext-3.0.9 vs test/tools/test_msgcat.rb in gettext-3.1.0
- old
+ new
@@ -399,6 +399,26 @@
def test_no_report_warning
run_msgcat([@po_fuzzy], "--no-report-warning")
assert_empty(@stderr)
end
end
+
+ class TestObsoleteEntries < self
+ def setup
+ @po_fuzzy = <<-PO
+#~ msgid "Hello World"
+#~ msgstr "Bonjour"
+ PO
+ end
+
+ def test_default
+ assert_equal(<<-PO, run_msgcat([@po_fuzzy]))
+#~ msgid "Hello World"
+#~ msgstr "Bonjour"
+ PO
+ end
+
+ def test_no_obsolete_entries
+ assert_equal("", run_msgcat([@po_fuzzy], "--no-obsolete-entries"))
+ end
+ end
end