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
90
90
symbolsRsp <- skipManyTill anyNotification message :: Session DocumentSymbolsResponse
91
91
liftIO $ symbolsRsp ^. L. id `shouldBe` responseId id2
92
92
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
96
98
" Example_symbol_name"
97
99
Nothing
98
100
SkVariable
@@ -110,6 +112,6 @@ spec = do
110
112
, _end = Position {_line = 4 , _character = 7 }})
111
113
(Range {_start = Position {_line = 4 , _character = 1 }
112
114
, _end = Position {_line = 4 , _character = 7 }})
113
- Nothing ]))
115
+ Nothing ]
114
116
115
117
return ()
You can’t perform that action at this time.
0 commit comments