예제 #1
0
 def testMultipleNestedMultiLine(self):
     testaroo = CountLines()
     newString = testaroo.strippedMultiLineComments('This is a /*t\ne/*s*/\n/*t*/\n*/ of the Java/*Script*/ RegExp object')
     assert newString == 'This is a \n of the Java RegExp object'
     pass
예제 #2
0
 def testNestedSingleLine(self):
     testaroo = CountLines()
     newString = testaroo.strippedMultiLineComments('Test a st/*hi*/ri/*blah*/ng lik/*blahblah*/e this')
     assert newString == 'Test a string like this'
     pass