Skip to content

Commit

Permalink
Prevent a warning: ambiguous /
Browse files Browse the repository at this point in the history
  • Loading branch information
mame authored and hsbt committed Nov 11, 2024
1 parent b21432d commit a6fae8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/irb/test_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ def test_build_completor
verbose, $VERBOSE = $VERBOSE, nil
original_completor = IRB.conf[:COMPLETOR]
IRB.conf[:COMPLETOR] = nil
assert_match /IRB::(Regexp|Type)Completor/, @context.send(:build_completor).class.name
assert_match(/IRB::(Regexp|Type)Completor/, @context.send(:build_completor).class.name)
IRB.conf[:COMPLETOR] = :regexp
assert_equal 'IRB::RegexpCompletor', @context.send(:build_completor).class.name
IRB.conf[:COMPLETOR] = :unknown
Expand Down

0 comments on commit a6fae8b

Please sign in to comment.