From ab3d49d4c08817441a02c7c3e5df043c4e791f18 Mon Sep 17 00:00:00 2001 From: Naoto Ono Date: Sun, 7 Jan 2024 18:51:34 +0900 Subject: [PATCH] Test for #1001 --- test/protocol/hover_raw_dap_test.rb | 44 +++++++++++++---------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/test/protocol/hover_raw_dap_test.rb b/test/protocol/hover_raw_dap_test.rb index 35af47b22..cc930a429 100644 --- a/test/protocol/hover_raw_dap_test.rb +++ b/test/protocol/hover_raw_dap_test.rb @@ -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+/ }, @@ -641,7 +641,6 @@ def test_hover_works_correctly message: "Success", body: { type: "Integer", - variablesReference: 31, namedVariables: /\d+/, result: "3" } @@ -650,7 +649,7 @@ def test_hover_works_correctly seq: 23, command: "variables", arguments: { - variablesReference: 31 + variablesReference: 31, }, type: "request" }, @@ -667,7 +666,6 @@ def test_hover_works_correctly name: "#class", value: "Integer", type: "Class", - variablesReference: 32, namedVariables: /\d+/ } ] @@ -692,7 +690,6 @@ def test_hover_works_correctly message: "Success", body: { type: "Integer", - variablesReference: 33, namedVariables: /\d+/, result: "2" } @@ -718,7 +715,6 @@ def test_hover_works_correctly name: "#class", value: "Integer", type: "Class", - variablesReference: 34, namedVariables: /\d+/ } ] @@ -743,7 +739,6 @@ def test_hover_works_correctly message: "Success", body: { type: "Integer", - variablesReference: 35, namedVariables: /\d+/, result: "1" } @@ -769,7 +764,6 @@ def test_hover_works_correctly name: "#class", value: "Integer", type: "Class", - variablesReference: 36, namedVariables: /\d+/ } ]