def test_9(self):
     test = ParenChecker(StringIO("(([] { () })"))
     self.assertFalse(test.run())
 def test_5(self):
     test = ParenChecker(StringIO("())"))
     self.assertFalse(test.run())
 def test_6(self):
     test = ParenChecker(StringIO("(([] {}) ())"))
     self.assertTrue(test.run())
 def test_1(self):
     test = ParenChecker(StringIO("( )"))
     self.assertTrue(test.run())
Exemple #5
0
 def test_9(self):
     test = ParenChecker(StringIO("(([] { () })"))
     self.assertFalse(test.run())
Exemple #6
0
 def test_6(self):
     test = ParenChecker(StringIO("(([] {}) ())"))
     self.assertTrue(test.run())
Exemple #7
0
 def test_5(self):
     test = ParenChecker(StringIO("())"))
     self.assertFalse(test.run())
Exemple #8
0
 def test_1(self):
     test = ParenChecker(StringIO("( )"))
     self.assertTrue(test.run())