PICARD-1813: Fixed calling $title with empty value

This commit is contained in:
Philipp Wolfer
2020-05-08 14:34:11 +02:00
parent 1c4e6887f1
commit a3bb51993f
2 changed files with 3 additions and 0 deletions

View File

@@ -546,6 +546,7 @@ class ScriptParserTest(PicardTestCase):
self.assertScriptResultEquals("$title('a)", "'a")
self.assertScriptResultEquals("$title(l'a)", "L'a")
self.assertScriptResultEquals("$title(2'a)", "2'A")
self.assertScriptResultEquals(r"$title(%empty%)", "")
# Tests wrong number of arguments
areg = r"^\d+:\d+:\$title: Wrong number of arguments for \$title: Expected exactly 1, "
with self.assertRaisesRegex(ScriptError, areg):