Add a test case for compiler error formatting.

Error formatting with mixed tab and space.
This commit is contained in:
Yad Smood 2014-07-16 17:50:15 +08:00
parent 3ec10df4a1
commit f7b36054fc
1 changed files with 11 additions and 0 deletions

View File

@ -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'