mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Test: Corrected escape characters in test
This commit is contained in:
parent
95b926acb2
commit
1c1422370a
1 changed files with 12 additions and 3 deletions
|
@ -40,9 +40,18 @@ class TestBug295(TestCase):
|
|||
|
||||
def test_subst_with_slashes(self):
|
||||
"""Test substitution containing slashes"""
|
||||
self.t(('add', '--', 'one/two/three'))
|
||||
self.t(('1', 'modify', '/\\/two\\//TWO/'))
|
||||
code, out, err = self.t(('list',))
|
||||
self.t('add -- one/two/three')
|
||||
|
||||
# Python string contains \\\\, converts to internal \\.
|
||||
# Something in the command processing converts \\ --> \.
|
||||
# Taskwarrior sees /\/twp\//TWO/.
|
||||
#
|
||||
# Verify using:
|
||||
# code, out, err = self.t('rc.debug.parser=3 1 modify /\\\\/two\\\\//TWO/')
|
||||
# self.tap(err)
|
||||
|
||||
self.t('1 modify /\\\\/two\\\\//TWO/')
|
||||
code, out, err = self.t('list')
|
||||
self.assertIn('oneTWOthree', out)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue