From 4e2062cd25421b35f9338bd24e3d20adab9aac3a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 28 Jul 2015 19:35:29 -0400 Subject: [PATCH] Test: Added test for TW-1642 --- test/add.t | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/add.t b/test/add.t index 4827a1069..8cb3a65b7 100755 --- a/test/add.t +++ b/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())