diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 0b39fd0a..51256ce4 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -83,7 +83,7 @@ <%= code_for('overview', 'cubed_list') %>
The CoffeeScript compiler is written in pure Ruby, and is available as a Ruby Gem. @@ -125,7 +125,7 @@ gem install coffee-script
-l, --lintFunctions and Invocation - Functions are defined by a list of parameters, an arrow, and the + Functions are defined by a list of parameters, an arrow, and the function body. The empty function looks like this: =>.
<%= code_for('functions', 'cube(5)') %> @@ -278,7 +278,7 @@ coffee-script --print app/scripts/*.cs > concatenation.js The same mechanism is used to push down assignment through switch statements, and if-elses (although the ternary operator is preferred). - +Aliases Because the == operator frequently causes undesirable coercion, @@ -297,7 +297,7 @@ coffee-script --print app/scripts/*.cs > concatenation.js
Instead of a newline or semicolon, then can be used to separate - conditions from expressions, in while, + conditions from expressions, in while, if/else, and switch/when statements.
@@ -390,14 +390,14 @@ coffee-script --print app/scripts/*.cs > concatenation.js Multiline strings are allowed in CoffeeScript.
<%= code_for('strings', 'moby_dick') %> - +Here's a wish list of things that would be wonderful to have in CoffeeScript:
- +0.1.2 - Fixed a bug with calling super() through more than one level of + Fixed a bug with calling super() through more than one level of inheritance, with the re-addition of the extends keyword. - Added experimental Narwhal - support (as a Tusk package), contributed by + Added experimental Narwhal + support (as a Tusk package), contributed by Tom Robinson, including bin/cs as a CoffeeScript REPL and interpreter. New --no-wrap option to suppress the safety function wrapper.
- +0.1.1 Added instanceof and typeof as operators.
- +0.1.0 Initial CoffeeScript release. diff --git a/test/unit/test_execution.rb b/test/unit/test_execution.rb index 3021a6b7..9ec4ab4d 100644 --- a/test/unit/test_execution.rb +++ b/test/unit/test_execution.rb @@ -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