1
0
Fork 0
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:
Yad Smood 2014-07-16 17:50:15 +08:00
parent 3ec10df4a1
commit f7b36054fc

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? if require?
fs = require 'fs' fs = require 'fs'