Skip to content

Commit

Permalink
Test for #1001
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max committed Jan 7, 2024
1 parent 6837459 commit db26149
Showing 1 changed file with 18 additions and 27 deletions.
45 changes: 18 additions & 27 deletions test/protocol/hover_raw_dap_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -558,64 +558,64 @@ def test_hover_works_correctly
variables: [
{
name: "0",
value: "JSON::Ext::Generator::GeneratorMethods::Integer",
type: "Module",
value: /.*/,
type: /.*/,
variablesReference: 22,
namedVariables: /\d+/
},
{
name: "1",
value: "Numeric",
type: "Class",
value: /.*/,
type: /.*/,
variablesReference: 23,
namedVariables: /\d+/
},
{
name: "2",
value: "Comparable",
type: "Module",
value: /.*/,
type: /.*/,
variablesReference: 24,
namedVariables: /\d+/
},
{
name: "3",
value: "Object",
type: "Class",
value: /.*/,
type: /.*/,
variablesReference: 25,
namedVariables: /\d+/
},
{
name: "4",
value: "JSON::Ext::Generator::GeneratorMethods::Object",
type: "Module",
value: /.*/,
type: /.*/,
variablesReference: 26,
namedVariables: /\d+/
},
{
name: "5",
value: "PP::ObjectMixin",
type: "Module",
value: /.*/,
type: /.*/,
variablesReference: 27,
namedVariables: /\d+/
},
{
name: "6",
value: "DEBUGGER__::TrapInterceptor",
type: "Module",
value: /.*/,
type: /.*/,
variablesReference: 28,
namedVariables: /\d+/
},
{
name: "7",
value: "Kernel",
type: "Module",
value: /.*/,
type: /.*/,
variablesReference: 29,
namedVariables: /\d+/
},
{
name: "8",
value: "BasicObject",
type: "Class",
value: /.*/,
type: /.*/,
variablesReference: 30,
namedVariables: /\d+/
},
Expand All @@ -641,7 +641,6 @@ def test_hover_works_correctly
message: "Success",
body: {
type: "Integer",
variablesReference: 31,
namedVariables: /\d+/,
result: "3"
}
Expand All @@ -650,7 +649,6 @@ def test_hover_works_correctly
seq: 23,
command: "variables",
arguments: {
variablesReference: 31
},
type: "request"
},
Expand All @@ -667,7 +665,6 @@ def test_hover_works_correctly
name: "#class",
value: "Integer",
type: "Class",
variablesReference: 32,
namedVariables: /\d+/
}
]
Expand All @@ -692,7 +689,6 @@ def test_hover_works_correctly
message: "Success",
body: {
type: "Integer",
variablesReference: 33,
namedVariables: /\d+/,
result: "2"
}
Expand All @@ -701,7 +697,6 @@ def test_hover_works_correctly
seq: 25,
command: "variables",
arguments: {
variablesReference: 33
},
type: "request"
},
Expand All @@ -718,7 +713,6 @@ def test_hover_works_correctly
name: "#class",
value: "Integer",
type: "Class",
variablesReference: 34,
namedVariables: /\d+/
}
]
Expand All @@ -743,7 +737,6 @@ def test_hover_works_correctly
message: "Success",
body: {
type: "Integer",
variablesReference: 35,
namedVariables: /\d+/,
result: "1"
}
Expand All @@ -752,7 +745,6 @@ def test_hover_works_correctly
seq: 27,
command: "variables",
arguments: {
variablesReference: 35
},
type: "request"
},
Expand All @@ -769,7 +761,6 @@ def test_hover_works_correctly
name: "#class",
value: "Integer",
type: "Class",
variablesReference: 36,
namedVariables: /\d+/
}
]
Expand Down

0 comments on commit db26149

Please sign in to comment.