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