mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Add tests for parsing of nested quotes
This commit is contained in:
parent
6fe90c664e
commit
949284ba83
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ class TestParsingModstrings(object):
|
|||
assert util.tw_modstring_to_args('project:"Random test" +test') == ["project:Random test", "+test"]
|
||||
assert util.tw_modstring_to_args("project:'Random test' +test") == ["project:Random test", "+test"]
|
||||
|
||||
def test_modstring_to_args_with_nested_quotes(self):
|
||||
assert util.tw_modstring_to_args('project:"Random\'test" +test') == ["project:Random'test", "+test"]
|
||||
assert util.tw_modstring_to_args("project:'Random\"test' +test") == ["project:Random\"test", "+test"]
|
||||
|
||||
def test_modstring_to_args_with_esacpe(self):
|
||||
assert util.tw_modstring_to_args(r'project:Random\ test +test') == ["project:Random test", "+test"]
|
||||
assert util.tw_modstring_to_args(r"project:Random\ test +test") == ["project:Random test", "+test"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue