diff options
| author | y5nw <y5nw@protonmail.com> | 2026-05-17 07:44:50 +0000 |
|---|---|---|
| committer | orwell <orwell@bleipb.de> | 2026-06-07 20:42:10 +0200 |
| commit | b153a7efd85a2b5920af48465043831472c091ac (patch) | |
| tree | 8547da403f083112424a12a746769c87c0d903aa /advtrains/spec | |
| parent | 53615ad3c5df99f41c896283a9a1f9725cbb8e77 (diff) | |
Drop poconvert
As pointed out in a recent email[1], poconvert now throws an error on
Luanti 5.16.1. This patch removes poconvert entirely given that it no
longer makes sense to continue maintaining poconvert.
[1] https://lists.sr.ht/~gpcf/advtrains-discuss/%3CC34BDFB0-6409-4867-AA2F-CCE0CD5E2325@icloud.com%3E
Diffstat (limited to 'advtrains/spec')
| -rw-r--r-- | advtrains/spec/poconvert_spec.lua | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/advtrains/spec/poconvert_spec.lua b/advtrains/spec/poconvert_spec.lua deleted file mode 100644 index 51f33e7..0000000 --- a/advtrains/spec/poconvert_spec.lua +++ /dev/null @@ -1,70 +0,0 @@ -package.path = "../?.lua;" .. package.path -advtrains = {} -_G.advtrains = advtrains -local poconvert = require("poconvert") - -describe("PO file converter", function() - it("should convert PO files", function() - assert.equals([[ -# textdomain: foo -foo=bar -baz= -#@=wh\at\\@n=@=w\as\\@n -multiline@nstrings=multiline@nresult -with context?=oder doch nicht]], poconvert.from_string("foo", [[ -msgid "" -msgstr "whatever metadata" - -msgid "foo" -msgstr "bar" - -msgid "baz" -msgstr "" - -#, fuzzy -msgid "=wh\\at\\\\\n" -msgstr "=w\\as\\\\\n" - -msgid "multi" -"line\n" -"strings" -msgstr "multi" -"line\n" -"result" - -msgctxt "i18n context" -msgid "with context?" -msgstr "oder doch nicht"]])) - end) - it("should reject invalid tokens", function() - assert.has.errors(function() - poconvert.from_string("", [[ -foo "" -bar ""]]) - end, "Invalid token: foo") - end) - it("should reject entries without a msgstr", function() - assert.has.errors(function() - poconvert.from_string("", [[msgid "foo"]]) - end, "Missing translated string") - end) - it("should reject entries without a msgid", function() - assert.has.errors(function() - poconvert.from_string("", [[msgstr "foo"]]) - end, "Missing untranslated string") - end) - it("should reject entries with improperly enclosed strings", function() - assert.has.errors(function() - poconvert.from_string("", [[ -msgid "foo" -msgstr "bar \]]) - end, "String extends beyond the end of input") - end) - it("should reject incomplete input", function() - assert.has.errors(function() - poconvert.from_string("", [[ -msgid "foo" -msgstr]]) - end, "No string provided for msgstr") - end) -end) |
