Skip to content

Commit

Permalink
Revert "Skip Type completion tests related with IRB::VERSION"
Browse files Browse the repository at this point in the history
This reverts commit da2c293.
  • Loading branch information
hsbt committed Nov 15, 2023
1 parent 7c63a60 commit 0c3a1c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions test/irb/type_completion/test_type_analyze.rb
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,8 @@ def test_constant_path
assert_call('class A; X=1; class B; X=""; X.', include: String, exclude: Integer)
assert_call('class A; X=1; class B; X=""; end; X.', include: Integer, exclude: String)
assert_call('class A; class B; X=1; end; end; class A; class B; X.', include: Integer)
if defined?(IRB::VERSION)
assert_call('module IRB; VERSION.', include: String)
assert_call('module IRB; IRB::VERSION.', include: String)
end
assert_call('module IRB; VERSION.', include: String)
assert_call('module IRB; IRB::VERSION.', include: String)
assert_call('module IRB; VERSION=1; VERSION.', include: Integer)
assert_call('module IRB; VERSION=1; IRB::VERSION.', include: Integer)
assert_call('module IRB; module A; VERSION.', include: String)
Expand Down
2 changes: 1 addition & 1 deletion test/irb/type_completion/test_type_completor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_lvar
def test_const
assert_completion('Ar', include: 'Array')
assert_completion('::Ar', include: 'Array')
assert_completion('IRB::V', include: 'VERSION') if defined?(IRB::VERSION)
assert_completion('IRB::V', include: 'VERSION')
assert_completion('FooBar=1; F', include: 'FooBar')
assert_completion('::FooBar=1; ::F', include: 'FooBar')
assert_doc_namespace('Array', 'Array')
Expand Down

0 comments on commit 0c3a1c9

Please sign in to comment.