Browse Source

Adds space before log messages for easier reading

master
Noah Pederson 10 months ago
parent
commit
6fb80903c9
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      tests/test_pattern_matching.py

+ 5
- 5
tests/test_pattern_matching.py View File

@@ -58,7 +58,7 @@ class MatcherTestCase(TestCase):
for test_case in self.test_cases:
with self.subTest(text=test_case[0], pattern=test_case[1]):
match = isMatch(test_case[0], test_case[1])
logging.info("%s match %s = %s should be %s",
logging.info(" %s match %s = %s should be %s",
test_case[0], test_case[1], match, test_case[2])
self.assertEqual(match, test_case[2])

@@ -66,7 +66,7 @@ class MatcherTestCase(TestCase):
for test_case in self.test_cases:
with self.subTest(msg="LAZY", text=test_case[0], pattern=test_case[1]):
match = lazyIsMatch(test_case[0], test_case[1])
logging.info("%s match %s = %s should be %s",
logging.info(" %s match %s = %s should be %s",
test_case[0], test_case[1], match, test_case[2])
self.assertEqual(match, test_case[2])

@@ -75,7 +75,7 @@ class MatcherTestCase(TestCase):
for test_case in self.test_cases:
with self.subTest(text=test_case[0], pattern=test_case[1]):
match = isMatch2(test_case[0], test_case[1])
logging.info("%s match %s = %s should be %s",
logging.info(" %s match %s = %s should be %s",
test_case[0], test_case[1], match, test_case[2])
self.assertEqual(match, test_case[2])

@@ -84,7 +84,7 @@ class MatcherTestCase(TestCase):
for test_case in self.false_negatives_v2:
with self.subTest(text=test_case[0], pattern=test_case[1]):
match = isMatch2(test_case[0], test_case[1])
logging.info("%s match %s = %s should be %s",
logging.info(" %s match %s = %s should be %s",
test_case[0], test_case[1], match, test_case[2])
self.assertEqual(match, test_case[2])
@@ -92,6 +92,6 @@ class MatcherTestCase(TestCase):
for test_case in self.test_cases:
with self.subTest(text=test_case[0], pattern=test_case[1]):
match = isMatch3(test_case[0], test_case[1])
logging.info("%s match %s = %s should be %s",
logging.info(" %s match %s = %s should be %s",
test_case[0], test_case[1], match, test_case[2])
self.assertEqual(match, test_case[2])

Loading…
Cancel
Save