mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Remove trailing whitespace in test/error_messages.coffee
Trailing whitespace is generally considered 'bad style' and is often linted against or even simply removed by text editors. One of the tests in test/error_messages.coffee depended on trailing whitespace, making the file tricky to work with for people whose editor is configured to remove trailing whitespace. The alternative is to use a literal "\n" and escape the line break.
This commit is contained in:
parent
de180dc81a
commit
27e0914a0d
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ test "#3795: invalid escapes", ->
|
|||
assertErrorFormat '''
|
||||
///a \\u002 0 space///
|
||||
''', '''
|
||||
[stdin]:1:6: error: invalid escape sequence \\u002
|
||||
[stdin]:1:6: error: invalid escape sequence \\u002 \n\
|
||||
///a \\u002 0 space///
|
||||
^\^^^^^
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue