Beispiel #1
0
 def testFloorExample5(self):
     self.assertEquals(-3, dec01.floor(0, ")))"))
     self.assertEquals(-3, dec01.floor(0, ")())())"))
Beispiel #2
0
 def testFloorExample4(self):
     assert(dec01.floor(0, "())") == -1)
     assert(dec01.floor(0, "))(") == -1)
Beispiel #3
0
 def testFloorExample2(self):
     assert(dec01.floor(0, "(((") == 3)
     assert(dec01.floor(0, "(()(()(") == 3)
Beispiel #4
0
 def testFloorExample3(self):
     assert(dec01.floor(0, "))(((((") == 3)
Beispiel #5
0
 def testFloorExample1(self):
     assert(dec01.floor(0, "(())") == 0)
     assert(dec01.floor(0, "()()") == 0)