mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Add a test case for compiler error formatting.
Error formatting with mixed tab and space.
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user