[Bug #20992] Test for local variable name encodings
This commit is contained in:
parent
3650f2460f
commit
5fec930832
Notes:
git
2024-12-30 09:59:57 +00:00
3
test/.excludes/TestVariable.rb
Normal file
3
test/.excludes/TestVariable.rb
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if RUBY_DESCRIPTION.include?("+PRISM")
|
||||||
|
exclude(:test_local_variables_encoding, "[Bug #20992]")
|
||||||
|
end
|
@ -425,6 +425,13 @@ class TestVariable < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_local_variables_encoding
|
||||||
|
α = 1
|
||||||
|
b = binding
|
||||||
|
b.eval("".encode("us-ascii"))
|
||||||
|
assert_equal(%i[α b], b.local_variables)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def with_kwargs_11(v1:, v2:, v3:, v4:, v5:, v6:, v7:, v8:, v9:, v10:, v11:)
|
def with_kwargs_11(v1:, v2:, v3:, v4:, v5:, v6:, v7:, v8:, v9:, v10:, v11:)
|
||||||
local_variables
|
local_variables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user