From f7b36054fcbcc0c26f0b81aea355b2667878bcee Mon Sep 17 00:00:00 2001 From: Yad Smood Date: Wed, 16 Jul 2014 17:50:15 +0800 Subject: [PATCH] Add a test case for compiler error formatting. Error formatting with mixed tab and space. --- test/error_messages.coffee | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/error_messages.coffee b/test/error_messages.coffee index 551f3b5e..21886f6a 100644 --- a/test/error_messages.coffee +++ b/test/error_messages.coffee @@ -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'