mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Add a test case for compiler error formatting.
Error formatting with mixed tab and space.
This commit is contained in:
parent
3ec10df4a1
commit
f7b36054fc
1 changed files with 11 additions and 0 deletions
|
@ -41,6 +41,17 @@ test "compiler error formatting", ->
|
||||||
^^^^
|
^^^^
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
test "compiler error formatting with mixed tab and space", ->
|
||||||
|
assertErrorFormat """
|
||||||
|
\t if a
|
||||||
|
\t test
|
||||||
|
""",
|
||||||
|
'''
|
||||||
|
[stdin]:1:4: error: unexpected if
|
||||||
|
\t if a
|
||||||
|
\t ^^
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
if require?
|
if require?
|
||||||
fs = require 'fs'
|
fs = require 'fs'
|
||||||
|
|
Loading…
Reference in a new issue