Exemplo n.º 1
0
 def testFindBiggestDollar(self):
     self.assertEqual(Alias.findBiggestDollar(''), 0)
     self.assertEqual(Alias.findBiggestDollar('foo'), 0)
     self.assertEqual(Alias.findBiggestDollar('$0'), 0)
     self.assertEqual(Alias.findBiggestDollar('$1'), 1)
     self.assertEqual(Alias.findBiggestDollar('$2'), 2)
     self.assertEqual(Alias.findBiggestDollar('$2 $10'), 10)
     self.assertEqual(Alias.findBiggestDollar('$3'), 3)
     self.assertEqual(Alias.findBiggestDollar('$3 $2 $1'), 3)
     self.assertEqual(Alias.findBiggestDollar('foo bar $1'), 1)
     self.assertEqual(Alias.findBiggestDollar('foo $2 $1'), 2)
     self.assertEqual(Alias.findBiggestDollar('foo $0 $1'), 1)
     self.assertEqual(Alias.findBiggestDollar('foo $1 $3'), 3)
     self.assertEqual(Alias.findBiggestDollar('$10 bar $1'), 10)
Exemplo n.º 2
0
 def testFindBiggestDollar(self):
     self.assertEqual(Aka.findBiggestDollar(''), 0)
     self.assertEqual(Aka.findBiggestDollar('foo'), 0)
     self.assertEqual(Aka.findBiggestDollar('$0'), 0)
     self.assertEqual(Aka.findBiggestDollar('$1'), 1)
     self.assertEqual(Aka.findBiggestDollar('$2'), 2)
     self.assertEqual(Aka.findBiggestDollar('$2 $10'), 10)
     self.assertEqual(Aka.findBiggestDollar('$3'), 3)
     self.assertEqual(Aka.findBiggestDollar('$3 $2 $1'), 3)
     self.assertEqual(Aka.findBiggestDollar('foo bar $1'), 1)
     self.assertEqual(Aka.findBiggestDollar('foo $2 $1'), 2)
     self.assertEqual(Aka.findBiggestDollar('foo $0 $1'), 1)
     self.assertEqual(Aka.findBiggestDollar('foo $1 $3'), 3)
     self.assertEqual(Aka.findBiggestDollar('$10 bar $1'), 10)