#NEWLINE# def testCommentOnOwnLine( self ) : #NEWLINE# #INDENT# result = lua . Lua . from_lines ( [ 'a = b\n    -- comment\nc = d\n' ] , 4 ) #NEWLINE# lines = list ( result . to_lines ( writer_cls = lua . LuaFormatterTokenWriter ) ) #NEWLINE# txt = '' . join ( lines ) #NEWLINE# self . assertEqual ( 'a = b\n-- comment\nc = d\n' , self )