mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby: make more ruby-mode.el friendly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dd3bbc6005
commit
8a3201dae6
2 changed files with 8 additions and 8 deletions
|
@ -517,8 +517,8 @@ class TestParse < Test::Unit::TestCase
|
|||
x = nil
|
||||
|
||||
assert_raise(SyntaxError) do
|
||||
eval %q(
|
||||
<<FOO
|
||||
eval %Q(
|
||||
<\<FOO
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -531,8 +531,8 @@ FOO
|
|||
end
|
||||
|
||||
assert_raise(SyntaxError) do
|
||||
eval %q(
|
||||
<<"
|
||||
eval %Q(
|
||||
<\<\"
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -558,7 +558,7 @@ FOO
|
|||
end
|
||||
|
||||
assert_nothing_raised do
|
||||
eval "x = <<FOO\r\n1\r\nFOO"
|
||||
eval "x = <<""FOO\r\n1\r\nFOO"
|
||||
end
|
||||
assert_equal("1\n", x)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue