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 ab3d49d
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 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,7 @@ def test_hover_works_correctly
seq: 23,
command: "variables",
arguments: {
variablesReference: 31
variablesReference: 31,
},
type: "request"
},
Expand All @@ -667,7 +666,6 @@ def test_hover_works_correctly
name: "#class",
value: "Integer",
type: "Class",
variablesReference: 32,
namedVariables: /\d+/
}
]
Expand All @@ -692,7 +690,6 @@ def test_hover_works_correctly
message: "Success",
body: {
type: "Integer",
variablesReference: 33,
namedVariables: /\d+/,
result: "2"
}
Expand All @@ -718,7 +715,6 @@ def test_hover_works_correctly
name: "#class",
value: "Integer",
type: "Class",
variablesReference: 34,
namedVariables: /\d+/
}
]
Expand All @@ -743,7 +739,6 @@ def test_hover_works_correctly
message: "Success",
body: {
type: "Integer",
variablesReference: 35,
namedVariables: /\d+/,
result: "1"
}
Expand All @@ -769,7 +764,6 @@ def test_hover_works_correctly
name: "#class",
value: "Integer",
type: "Class",
variablesReference: 36,
namedVariables: /\d+/
}
]
Expand Down

0 comments on commit ab3d49d

Please sign in to comment.