This commit is contained in:
Kovid Goyal 2018-07-18 10:47:06 +05:30
parent d4b85d69cc
commit 67d83e7e11
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -134,7 +134,7 @@ def find_tests():
authors = [x.strip() for x in authors.split('&')] authors = [x.strip() for x in authors.split('&')]
if isinstance(expected, type('')): if isinstance(expected, type('')):
expected = [x.strip() for x in expected.split('&')] expected = [x.strip() for x in expected.split('&')]
ans = map_authors(authors, rules) ans = map_authors(authors, compile_rules(rules))
self.assertEqual(ans, expected) self.assertEqual(ans, expected)
run(rule('capitalize', 't1&t2'), 't1&x1', 'T1&x1') run(rule('capitalize', 't1&t2'), 't1&x1', 'T1&x1')