mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned
This commit is contained in:
@@ -6,17 +6,17 @@ class ExecutionTest < Test::Unit::TestCase
|
||||
ALLS_WELL = /\A\n?(true\n)+\Z/
|
||||
|
||||
def test_execution_of_coffeescript
|
||||
sources = ['test/fixtures/execution/*.cs'].join(' ')
|
||||
sources = ['test/fixtures/execution/*.coffee'].join(' ')
|
||||
assert `bin/coffee-script -r #{sources}`.match(ALLS_WELL)
|
||||
end
|
||||
|
||||
def test_lintless_coffeescript
|
||||
lint_results = `bin/coffee-script -l test/fixtures/execution/*.cs`
|
||||
lint_results = `bin/coffee-script -l test/fixtures/execution/*.coffee`
|
||||
assert lint_results.match(NO_WARNINGS)
|
||||
end
|
||||
|
||||
def test_lintless_examples
|
||||
lint_results = `bin/coffee-script -l examples/*.cs`
|
||||
lint_results = `bin/coffee-script -l examples/*.coffee`
|
||||
assert lint_results.match(NO_WARNINGS)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user