File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,11 @@ spec = do
9090 symbolsRsp <- skipManyTill anyNotification message :: Session DocumentSymbolsResponse
9191 liftIO $ symbolsRsp ^. L. id `shouldBe` responseId id2
9292
93- liftIO $ symbolsRsp ^. L. result `shouldBe`
94- Just (DSDocumentSymbols
95- (List [DocumentSymbol
93+
94+ let Just (DSDocumentSymbols (List ds)) = symbolsRsp ^. L. result
95+ liftIO $ length ds `shouldBe` 3
96+ liftIO $ (take 2 ds) `shouldBe`
97+ [DocumentSymbol
9698 " Example_symbol_name"
9799 Nothing
98100 SkVariable
@@ -110,6 +112,6 @@ spec = do
110112 , _end = Position {_line = 4 , _character = 7 }})
111113 (Range {_start = Position {_line = 4 , _character = 1 }
112114 , _end = Position {_line = 4 , _character = 7 }})
113- Nothing ]))
115+ Nothing ]
114116
115117 return ()
You can’t perform that action at this time.
0 commit comments