Skip to content

Commit

Permalink
test/tag.t: Add test for '%' character in a tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
sruffell authored and lauft committed Feb 26, 2019
1 parent 01d1142 commit 44ed56a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/tag.t
Expand Up @@ -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
Expand Down

0 comments on commit 44ed56a

Please sign in to comment.