Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Indentation fix.

  • Loading branch information...
commit 8ade4f10774ad7087ea4cdc583f1c6c91378cd1b 1 parent c0dac45
@clutchski clutchski authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 test/formatting.coffee
View
22 test/formatting.coffee
@@ -123,17 +123,17 @@ test "#1492: Nested blocks don't cause double semicolons", ->
eq -1, js.indexOf ';;'
test "#1195 Ignore trailing semicolons (before newlines or as the last char in a program)", ->
- preNewline = (numSemicolons) ->
- """
- nonce = {}; nonce2 = {}
- f = -> nonce#{Array(numSemicolons+1).join(';')}
- nonce2
- unless f() is nonce then throw new Error('; before linebreak should = newline')
- """
- CoffeeScript.run(preNewline(n), bare: true) for n in [1,2,3]
-
- lastChar = '-> lastChar;'
- doesNotThrow -> CoffeeScript.compile lastChar, bare: true
+ preNewline = (numSemicolons) ->
+ """
+ nonce = {}; nonce2 = {}
+ f = -> nonce#{Array(numSemicolons+1).join(';')}
+ nonce2
+ unless f() is nonce then throw new Error('; before linebreak should = newline')
+ """
+ CoffeeScript.run(preNewline(n), bare: true) for n in [1,2,3]
+
+ lastChar = '-> lastChar;'
+ doesNotThrow -> CoffeeScript.compile lastChar, bare: true
test "#1299: Disallow token misnesting", ->
try
Please sign in to comment.
Something went wrong with that request. Please try again.