Backport #2120 » ruby-2120.patch
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
|
- « Previous
- 1
- 2
- Next »