mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-27 11:47:34 +00:00
PICARD-1813: Fixed calling $title with empty value
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user