1
0
Fork 0
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:
Chris Connelly 2016-12-21 08:24:05 +00:00
parent de180dc81a
commit 27e0914a0d

View file

@ -428,7 +428,7 @@ test "#3795: invalid escapes", ->
assertErrorFormat ''' assertErrorFormat '''
///a \\u002 0 space/// ///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/// ///a \\u002 0 space///
^\^^^^^ ^\^^^^^
''' '''