mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Cleaned up method string
This commit is contained in:
parent
47fdcc661f
commit
48bf65af5a
1 changed files with 8 additions and 4 deletions
12
test/add.t
12
test/add.t
|
@ -66,8 +66,10 @@ class TestAdd(TestCase):
|
||||||
self.assertRegexpMatches(out, "UUID\s+" + UUID_REGEXP + "\n")
|
self.assertRegexpMatches(out, "UUID\s+" + UUID_REGEXP + "\n")
|
||||||
|
|
||||||
def test_floating_point_preservation(self):
|
def test_floating_point_preservation(self):
|
||||||
"""Verify that floating point numbers are unmolested"""
|
"""Verify that floating point numbers are unmolested
|
||||||
# Bug 924: '1.0' --> '1.0000'
|
|
||||||
|
Bug 924: '1.0' --> '1.0000'
|
||||||
|
"""
|
||||||
self.t("add release 1.0")
|
self.t("add release 1.0")
|
||||||
self.t("add 'release 2.0'")
|
self.t("add 'release 2.0'")
|
||||||
self.t("add \\\"release 3.0\\\"")
|
self.t("add \\\"release 3.0\\\"")
|
||||||
|
@ -82,8 +84,10 @@ class TestAdd(TestCase):
|
||||||
self.assertEqual(out, "release 3.0\n")
|
self.assertEqual(out, "release 3.0\n")
|
||||||
|
|
||||||
def test_escaped_quotes_are_preserved(self):
|
def test_escaped_quotes_are_preserved(self):
|
||||||
"""Verify that escaped quotes are preserved"""
|
"""Verify that escaped quotes are preserved
|
||||||
# Bug 917: escaping runs amok
|
|
||||||
|
Bug 917: escaping runs amok
|
||||||
|
"""
|
||||||
self.t("add one \\'two\\' three")
|
self.t("add one \\'two\\' three")
|
||||||
self.t("add four \\\"five\\\" six")
|
self.t("add four \\\"five\\\" six")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue