Skip to content
Browse files

Test for JRUBY-5922

  • Loading branch information...
1 parent ee64f38 commit 0ce098da608d848719cebc85a6cad9b03210f711 @BanzaiMan BanzaiMan committed Aug 20, 2011
Showing with 12 additions and 0 deletions.
  1. +1 −0 test/ruby_1_9_index
  2. +1 −0 test/runaway_magic_comment.rb
  3. +10 −0 test/test_runaway_magic_comment_1_9.rb
View
1 test/ruby_1_9_index
@@ -15,6 +15,7 @@ test_win32
test_time_1_9
test_yaml_1_9
test_dir_1_9
+test_runaway_magic_comment_1_9
externals/ruby1.9/psych/test_alias_and_anchor
externals/ruby1.9/psych/test_array
externals/ruby1.9/psych/test_boolean
View
1 test/runaway_magic_comment.rb
@@ -0,0 +1 @@
+#encoding: UTF-8
View
10 test/test_runaway_magic_comment_1_9.rb
@@ -0,0 +1,10 @@
+require 'test/unit'
+
+class MagicCommentTest19 < Test::Unit::TestCase
+
+ # JRUBY-5922
+ def test_magic_comment_parse
+ path = File.join(File.dirname(__FILE__), 'runaway_magic_comment.rb')
+ assert(system "ruby --1.9 #{path}")
+ end
+end

0 comments on commit 0ce098d

Please sign in to comment.
Something went wrong with that request. Please try again.