Project

General

Profile

Backport #2120 » ruby-2120.patch

headius (Charles Nutter), 09/19/2009 05:14 PM

View differences:

test/ruby/test_eval.rb
assert_raise(ArgumentError) {eval("__ENCODING__".encode("utf-32be"))}
assert_raise(ArgumentError) {eval("__ENCODING__".encode("utf-32le"))}
end
def test_eval_with_binding_in_for
for i in [1]
a = eval('local_variables', binding)
end
assert_equal ['i','a'], a
end
end
(2-2/2)