示例#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())