mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
added some execution test
This commit is contained in:
17
test/unit/test_execution.rb
Normal file
17
test/unit/test_execution.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ExecutionTest < Test::Unit::TestCase
|
||||
|
||||
def test_execution_of_coffeescript
|
||||
`bin/coffee-script test/fixtures/execution/*.cs`
|
||||
sources = Dir['test/fixtures/execution/*.js'].map {|f| File.expand_path(f) }
|
||||
starting_place = File.expand_path(Dir.pwd)
|
||||
Dir.chdir('/Users/jashkenas/Desktop/Beauty/Code/v8')
|
||||
sources.each do |source|
|
||||
assert `./shell #{source}`.chomp.to_sym == :true
|
||||
end
|
||||
ensure
|
||||
Dir.chdir(starting_place)
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user