Permalink
Browse files

Changed to a more generic URL for testing

  • Loading branch information...
recollir authored and pbeckingham committed Feb 17, 2018
1 parent b97e140 commit 11a281b862b4107a1e370acb9c442ff8be3f39fe
Showing with 4 additions and 4 deletions.
  1. +2 −2 test/lexer.t.cpp
  2. +2 −2 test/log.t
@@ -347,8 +347,8 @@ int main (int, char**)
{ "rc.foo", { { "rc.foo", Lexer::Type::dom }, NO, NO, NO, NO }, },

// URL
{ "http://tasktools.org", { { "http://tasktools.org", Lexer::Type::url }, NO, NO, NO, NO }, },
{ "https://bug.tasktools.org", { { "https://bug.tasktools.org", Lexer::Type::url }, NO, NO, NO, NO }, },
{ "http://example.com", { { "http://example.com", Lexer::Type::url }, NO, NO, NO, NO }, },
{ "https://foo.example.com", { { "https://foo.example.com", Lexer::Type::url }, NO, NO, NO, NO }, },

// String
{ "'one two'", { { "'one two'", Lexer::Type::string }, NO, NO, NO, NO }, },
@@ -67,10 +67,10 @@ class TestBug1575(TestCase):
tw-1575: `task log` mangles URLs when quoted
"""
self.t("log testing123 https://bug.tasktools.org")
self.t("log testing123 https://foo.example.com")

code, out, err = self.t("completed")
self.assertIn("testing123 https://bug.tasktools.org", out)
self.assertIn("testing123 https://foo.example.com", out)


if __name__ == "__main__":

0 comments on commit 11a281b

Please sign in to comment.