예제 #1
0
 def testLine1(self):
     self.assertEqual(solution("hello world"), -1)
예제 #2
0
 def testLine2(self):
     self.assertEqual(solution("{}"), -1)
예제 #3
0
 def testLine7(self):
     self.assertEqual(solution("{}{foo{}"), 2)
예제 #4
0
 def testLine6(self):
     self.assertEqual(solution("}"), 0)
예제 #5
0
 def testLine5(self):
     self.assertEqual(solution("{{{}"), 0)
예제 #6
0
 def testLine4(self):
     self.assertEqual(solution("{{}{}}"), -1)
예제 #7
0
 def testLine3(self):
     self.assertEqual(solution("{{{foo();}}}{}"), -1)