8000 Add two more breaking bad tests (#636) · LeetCode-Interview/algorithms@5f9838d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f9838d

Browse files
authored
Add two more breaking bad tests (keon#636)
* Add two more breaking bad tests * move tests to test_bracket
1 parent ebc8de4 commit 5f9838d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_strings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def test_match_symbol_1(self):
7979

8080
def test_bracket(self):
8181
self.assertEqual(('[Am]azon', 'Mi[cro]soft', 'Goog[le]'), bracket(self.words, self.symbols))
82-
82+
self.assertEqual(('Amazon', 'Microsoft', 'Google'), bracket(self.words, ['thisshouldnotmatch']))
83+
self.assertEqual(('Amazon', 'M[i]crosoft', 'Google'), bracket(self.words, ['i', 'i']))
8384

8485
class TestDecodeString(unittest.TestCase):
8586
"""[summary]

0 commit comments

Comments
 (0)
0