repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
d8af85a
)
Fixup 2e69137dbe9fd7c03dac9b8adc30a7eba3ecb10b
author
Hiroshi SHIBATA
<
[email protected]
>
Mon, 22 Jan 2024 22:54:54 +0000
(23 07:54 +0900)
committer
Hiroshi SHIBATA
<
[email protected]
>
Mon, 22 Jan 2024 23:45:45 +0000
(23 08:45 +0900)
test/irb/test_completion.rb
patch
|
blob
|
blame
|
history
diff --git
a/test/irb/test_completion.rb
b/test/irb/test_completion.rb
index
2f97d99
..
4500fed
100644
(file)
--- a/
test/irb/test_completion.rb
+++ b/
test/irb/test_completion.rb
@@
-124,8
+124,9
@@
module TestIRB
end
def test_complete_require_library_name_first
end
def test_complete_require_library_name_first
- candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'coverage", "", bind: binding)
- assert_equal "'coverage", candidates.first
+ # Test that library name is completed first with subdirectories
+ candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'rubygems", "", bind: binding)
+ assert_equal "'rubygems", candidates.first
end
def test_complete_require_relative
end
def test_complete_require_relative