mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
sped up the execution test a good deal by running it all in one pass
This commit is contained in:
@@ -3,13 +3,11 @@ require 'test_helper'
|
||||
class ExecutionTest < Test::Unit::TestCase
|
||||
|
||||
NO_WARNINGS = /\A(0 error\(s\), 0 warning\(s\)\n)+\Z/
|
||||
ALLS_WELL = /\A\n?(true\n)+\Z/
|
||||
|
||||
def test_execution_of_coffeescript
|
||||
Dir['test/fixtures/execution/*.cs'].each do |source|
|
||||
suceeded = `bin/cs #{source}`.chomp.to_sym == :true
|
||||
puts "failed: #{source}" unless suceeded
|
||||
assert suceeded
|
||||
end
|
||||
sources = ['test/fixtures/execution/*.cs'].join(' ')
|
||||
assert `bin/cs #{sources}`.match(ALLS_WELL)
|
||||
end
|
||||
|
||||
def test_lintless_coffeescript
|
||||
|
||||
Reference in New Issue
Block a user