mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
test/tag.t: Add test for '%' character in a tag.
This commit is contained in:
parent
01d1142480
commit
44ed56ad38
1 changed files with 7 additions and 0 deletions
|
@ -248,6 +248,13 @@ class TestTag(TestCase):
|
|||
self.assertNotIn("Note: 'bar' is a new tag", out)
|
||||
self.assertIn("Added bar to @1", out)
|
||||
|
||||
def test_tag_with_percent_sign(self):
|
||||
"""Call 'tag' with an embedded percent sign"""
|
||||
code, out, err = self.t("start 'ta%g'")
|
||||
self.assertIn("Note: '\"ta%g\"' is a new tag", out)
|
||||
self.t("stop")
|
||||
self.t("delete @1")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue