mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 14:13:03 +02:00
...
This commit is contained in:
parent
d4b85d69cc
commit
67d83e7e11
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ def run(rules, authors, expected):
|
|||
authors = [x.strip() for x in authors.split('&')]
|
||||
if isinstance(expected, type('')):
|
||||
expected = [x.strip() for x in expected.split('&')]
|
||||
ans = map_authors(authors, rules)
|
||||
ans = map_authors(authors, compile_rules(rules))
|
||||
self.assertEqual(ans, expected)
|
||||
|
||||
run(rule('capitalize', 't1&t2'), 't1&x1', 'T1&x1')
|
||||
|
|
|
|||
Loading…
Reference in a new issue