mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
12 lines
255 B
Ruby
12 lines
255 B
Ruby
# frozen_string_literal: false
|
|
require 'test/unit'
|
|
require "-test-/eval"
|
|
|
|
class EvalTest < Test::Unit::TestCase
|
|
def test_rb_eval_string
|
|
_a = 1
|
|
assert_equal [self, 1, __method__], rb_eval_string(%q{
|
|
[self, _a, __method__]
|
|
})
|
|
end
|
|
end
|