Commit c0e6f5f8 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2290 from take-cheeze/eval_iso

Add ISO index to `Kernel.eval` and `Kernel#eval`.
parents a1d11762 3aeb4568
assert('Kernel.eval') do assert('Kernel.eval', '15.3.1.2.3') do
assert_equal(10) { Kernel.eval '1 * 10' } assert_equal(10) { Kernel.eval '1 * 10' }
assert_equal('aaa') { Kernel.eval "'a' * 3" } assert_equal('aaa') { Kernel.eval "'a' * 3" }
assert_equal(10) { assert_equal(10) {
...@@ -34,7 +34,7 @@ assert('Kernel.eval') do ...@@ -34,7 +34,7 @@ assert('Kernel.eval') do
} }
end end
assert('eval') do assert('Kernel#eval', '15.3.1.3.12') do
assert_equal(10) { eval '1 * 10' } assert_equal(10) { eval '1 * 10' }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment