diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2016-03-19 11:42:35 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2016-03-19 11:44:49 +0100 |
commit | 782b1b5bd1cdaaead6865dee5d300486e7dd8348 (patch) | |
tree | c6e1303ba215d1a3ce99233050999be7b1deba7e /test | |
parent | 0d769bcb781b46a00ddf958d6ea945560f2d6cd5 (diff) | |
download | youtube-dl-782b1b5bd1cdaaead6865dee5d300486e7dd8348.tar.gz youtube-dl-782b1b5bd1cdaaead6865dee5d300486e7dd8348.zip |
[utils] lookup_unit_table: Match word boundary instead of end of string
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 9a3a8ddff..325b870cc 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -702,6 +702,8 @@ class TestUtil(unittest.TestCase): self.assertEqual(parse_count('1.000'), 1000) self.assertEqual(parse_count('1.1k'), 1100) self.assertEqual(parse_count('1.1kk'), 1100000) + self.assertEqual(parse_count('1.1kk '), 1100000) + self.assertEqual(parse_count('1.1kk views'), 1100000) def test_version_tuple(self): self.assertEqual(version_tuple('1'), (1,)) |