Пример #1
0
 def testTakeChars(self):
   take_chars = unbabel.ruby(TAKE_CHARS)
   self.assertEqual(take_chars("abcde", [1,3]), ["b", "d"])
Пример #2
0
 def testFib(self):
   fib = unbabel.ruby(FIB)
   self.assertEqual(fib(10), 55)