Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove trivial test suite

  • Loading branch information...
commit a6f0f583cedd9d6ceb4c949fa03b3913620a847c 1 parent 2001526
@josh authored
Showing with 0 additions and 49 deletions.
  1. +0 −49 test/test_coffee_script.rb
View
49 test/test_coffee_script.rb
@@ -1,49 +0,0 @@
-require 'coffee_script'
-require 'test/unit'
-require 'stringio'
-
-class TestCoffeeScript < Test::Unit::TestCase
- def test_compile
- assert_equal "(function() {\n puts('Hello, World!');\n}).call(this);\n",
- CoffeeScript.compile("puts 'Hello, World!'\n")
- end
-
- def test_compile_with_io
- io = StringIO.new("puts 'Hello, World!'\n")
- assert_equal "(function() {\n puts('Hello, World!');\n}).call(this);\n",
- CoffeeScript.compile(io)
- end
-
- def test_compile_with_bare_true
- assert_equal "puts('Hello, World!');",
- CoffeeScript.compile("puts 'Hello, World!'\n", :bare => true)
- end
-
- def test_compile_with_bare_false
- assert_equal "(function() {\n puts('Hello, World!');\n}).call(this);\n",
- CoffeeScript.compile("puts 'Hello, World!'\n", :bare => false)
- end
-
- def test_compile_with_no_wrap_true
- assert_equal "puts('Hello, World!');",
- CoffeeScript.compile("puts 'Hello, World!'\n", :no_wrap => true)
- end
-
- def test_compile_with_no_wrap
- assert_equal "(function() {\n puts('Hello, World!');\n}).call(this);\n",
- CoffeeScript.compile("puts 'Hello, World!'\n", :no_wrap => false)
- end
-
- def test_compilation_error
- assert_raise CoffeeScript::CompilationError do
- CoffeeScript.compile("unless")
- end
- end
-
- def assert_exception_does_not_match(pattern)
- yield
- flunk "no exception raised"
- rescue Exception => e
- assert_no_match pattern, e.message
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.