From 36814adcd25b73ab441abb03dcb5786e76c7081a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 14:03:23 -0400 Subject: [PATCH] Test: Corrected backslash interpretation in test --- test/unicode.t | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/unicode.t b/test/unicode.t index e17a0ea93..9ab8349c4 100755 --- a/test/unicode.t +++ b/test/unicode.t @@ -84,7 +84,16 @@ class TestUnicode(TestCase): def test_unicode_escape2(self): """Verify \\uNNNN unicode sequences""" - self.t("add Price \\u20A43") + + # The following can be used to prove that \\\\ --> \. + # The Python string converts \\\\ --> \\. + # Something in the launch code converts \\ --> \. + # Taskwarrior sees \. + # + #code, out, err = self.t("add rc.debug.parser=3 Price \\\\u20A43") + #self.tap(err) + + self.t("add Price \\\\u20A43") code, out, err = self.t("_get 1.description") self.assertEqual("Price ₤3\n", out);