@@ -235,6 +235,11 @@ def test_baz; end
235
235
236
236
# unname test is ignored
237
237
it { }
238
+
239
+ context "日本語テスト" do
240
+ it "何かのテスト" do
241
+ end
242
+ end
238
243
end
239
244
RUBY
240
245
@@ -257,27 +262,30 @@ def test_baz; end
257
262
foo = response [ 0 ]
258
263
expect ( foo . name ) . to eq ( "Foo" )
259
264
expect ( foo . kind ) . to eq ( LanguageServer ::Protocol ::Constant ::SymbolKind ::MODULE )
260
- expect ( foo . children . count ) . to eq ( 4 )
265
+ expect ( foo . children . count ) . to eq ( 5 )
261
266
262
- expect ( foo . children [ 0 ] . name ) . to eq ( "\" when something\" " )
267
+ expect ( foo . children [ 0 ] . name ) . to eq ( "when something" )
263
268
expect ( foo . children [ 0 ] . kind ) . to eq ( LanguageServer ::Protocol ::Constant ::SymbolKind ::MODULE )
264
269
expect ( foo . children [ 0 ] . children . count ) . to eq ( 1 )
265
- expect ( foo . children [ 0 ] . children [ 0 ] . name ) . to eq ( "\" does something\" " )
270
+ expect ( foo . children [ 0 ] . children [ 0 ] . name ) . to eq ( "does something" )
266
271
expect ( foo . children [ 0 ] . children [ 0 ] . kind ) . to eq ( LanguageServer ::Protocol ::Constant ::SymbolKind ::METHOD )
267
272
268
273
foo_bar = foo . children [ 1 ]
269
274
expect ( foo_bar . name ) . to eq ( "Foo::Bar" )
270
275
expect ( foo_bar . children . count ) . to eq ( 2 )
271
- expect ( foo_bar . children [ 0 ] . name ) . to eq ( "\" does something else\" " )
272
- expect ( foo_bar . children [ 1 ] . name ) . to eq ( "\" when something else\" " )
276
+ expect ( foo_bar . children [ 0 ] . name ) . to eq ( "does something else" )
277
+ expect ( foo_bar . children [ 1 ] . name ) . to eq ( "when something else" )
273
278
expect ( foo_bar . children [ 1 ] . children . count ) . to eq ( 1 )
274
- expect ( foo_bar . children [ 1 ] . children [ 0 ] . name ) . to eq ( "\" does something something\" " )
279
+ expect ( foo_bar . children [ 1 ] . children [ 0 ] . name ) . to eq ( "does something something" )
275
280
276
281
expect ( foo . children [ 2 ] . name ) . to eq ( "<variable>" )
277
282
278
283
expect ( foo . children [ 3 ] . name ) . to eq ( "Baz" )
279
284
expect ( foo . children [ 3 ] . children . count ) . to eq ( 1 )
280
285
expect ( foo . children [ 3 ] . children [ 0 ] . name ) . to eq ( "test_baz" )
286
+
287
+ expect ( foo . children [ 4 ] . name ) . to eq ( "日本語テスト" )
288
+ expect ( foo . children [ 4 ] . children [ 0 ] . name ) . to eq ( "何かのテスト" )
281
289
end
282
290
end
283
291
end
0 commit comments