Add a test case for it
in a regex.
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
This commit is contained in:
parent
4921845b61
commit
c5c252c067
Notes:
git
2025-05-16 15:17:35 +00:00
@ -1954,6 +1954,7 @@ eom
|
||||
assert_equal(6, eval('a = 0; 6.then { begin; nil; rescue; ensure; a = it; end }; a'))
|
||||
assert_equal(7, eval('a = 0; 7.then { begin; raise; ensure; a = it; end } rescue a'))
|
||||
assert_equal(8, eval('a = 0; 8.then { begin; raise; rescue; ensure; a = it; end }; a'))
|
||||
assert_equal(/9/, eval('9.then { /#{it}/o }'))
|
||||
end
|
||||
|
||||
def test_value_expr_in_condition
|
||||
|
Loading…
x
Reference in New Issue
Block a user