mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a test for literal_spaces
This commit is contained in:
parent
83aaf12bd6
commit
acaee61715
@ -43,6 +43,7 @@ class BuildTest(unittest.TestCase):
|
||||
def test_regex(self):
|
||||
import regex
|
||||
self.assertEqual(regex.findall(r'(?i)(a)(b)', 'ab cd AB 1a1b'), [('a', 'b'), ('A', 'B')])
|
||||
self.assertEqual(regex.escape('a b', literal_spaces=True), 'a b')
|
||||
|
||||
def test_chardet(self):
|
||||
from chardet import detect
|
||||
|
Loading…
x
Reference in New Issue
Block a user