Example #1
0
    def testRemovingLineFeeds(self):
        input = """
function a() {
    var x = 1;
}
"""        
        output = minifyme.remove_line_feeds(input)
        self.assertEqual(0, output.count('\n'))
Example #2
0
 def test_removing_line_feeds(self):
     input = r'''
     function a() {
         var x = 1;
         var y = "\n"
     }
     '''
     output = minifyme.remove_line_feeds(input)
     self.assertEqual(0, output.count('\n'))