Add a test case for compiler error formatting.
Error formatting with mixed tab and space.
This commit is contained in:
parent
3ec10df4a1
commit
f7b36054fc
|
@ -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?
|
||||
fs = require 'fs'
|
||||
|
|
Loading…
Reference in New Issue