mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added test for TW-1642
This commit is contained in:
parent
d4b450bc53
commit
4e2062cd25
1 changed files with 11 additions and 0 deletions
11
test/add.t
11
test/add.t
|
@ -112,6 +112,17 @@ class TestAdd(TestCase):
|
|||
self.assertIn("foo (bar)", out)
|
||||
self.assertIn("baz (qux)", out)
|
||||
|
||||
def test_single_quote_preserved(self):
|
||||
"""Test single quote in a terminated multi-word string is preserved
|
||||
|
||||
TW-1642: After "--", an apostrophe unexpectedly ends the task description
|
||||
"""
|
||||
self.t("add -- \"Return Randy's stuff\"")
|
||||
|
||||
code, out, err = self.t ("_get 1.description")
|
||||
self.assertIn("Return Randy's stuff\n", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue