2010-03-09 23:04:16 -05:00
|
|
|
# Ensure that carriage returns don't break compilation on Windows.
|
2010-07-25 01:23:37 -04:00
|
|
|
CoffeeScript = require('./../lib/coffee-script')
|
|
|
|
Lexer = require('./../lib/lexer')
|
2010-03-09 23:04:16 -05:00
|
|
|
|
2010-07-25 01:23:37 -04:00
|
|
|
js = CoffeeScript.compile("one\r\ntwo", {noWrap: on})
|
2010-03-08 23:07:26 -05:00
|
|
|
|
2010-03-09 23:04:16 -05:00
|
|
|
ok js is "one;\ntwo;"
|
|
|
|
|
2010-07-09 01:01:31 -04:00
|
|
|
|
2010-07-25 01:23:37 -04:00
|
|
|
global.resultArray = []
|
2010-07-30 20:37:12 -04:00
|
|
|
CoffeeScript.run("resultArray.push i for i of global", {noWrap: on, globals: on, fileName: 'tests'})
|
2010-07-09 01:01:31 -04:00
|
|
|
|
|
|
|
ok 'setInterval' in global.resultArray
|
|
|
|
|
2010-09-21 01:36:23 -04:00
|
|
|
ok 'passed' is CoffeeScript.eval '"passed"', noWrap: on, globals: on, fileName: 'tests'
|