@@ -44,21 +44,21 @@ spec = parallel $ do
4444 it " produces tags for functions" $ do
4545 (blob, tree) <- parseTestFile pythonParser " test/fixtures/python/tags/simple_functions.py"
4646 runTagging blob symbolsToSummarize tree `shouldBe`
47- [ Tag " Foo" " Function" (Span (Pos 1 1 ) (Pos 5 17 )) [" Statements" ] (Just " def Foo(x)" ) Nothing
48- , Tag " Bar" " Function" (Span (Pos 7 1 ) (Pos 11 13 )) [" Statements" ] (Just " def Bar()" ) Nothing
49- , Tag " local" " Function" (Span (Pos 8 5 ) (Pos 9 17 )) [" Statements" , " Function" , " Statements" ] (Just " def local()" ) Nothing
47+ [ Tag " Foo" " Function" (Span (Pos 1 1 ) (Pos 5 17 )) [" Statements" ] (Just " def Foo(x): " ) Nothing
48+ , Tag " Bar" " Function" (Span (Pos 7 1 ) (Pos 11 13 )) [" Statements" ] (Just " def Bar(): " ) Nothing
49+ , Tag " local" " Function" (Span (Pos 8 5 ) (Pos 9 17 )) [" Statements" , " Function" , " Statements" ] (Just " def local(): " ) Nothing
5050 ]
5151
5252 it " produces tags for functions with docs" $ do
5353 (blob, tree) <- parseTestFile pythonParser " test/fixtures/python/tags/simple_function_with_docs.py"
5454 runTagging blob symbolsToSummarize tree `shouldBe`
55- [ Tag " Foo" " Function" (Span (Pos 1 1 ) (Pos 3 13 )) [" Statements" ] (Just " def Foo(x)" ) (Just " \"\"\" This is the foo function\"\"\" " ) ]
55+ [ Tag " Foo" " Function" (Span (Pos 1 1 ) (Pos 3 13 )) [" Statements" ] (Just " def Foo(x): " ) (Just " \"\"\" This is the foo function\"\"\" " ) ]
5656
5757 it " produces tags for classes" $ do
5858 (blob, tree) <- parseTestFile pythonParser " test/fixtures/python/tags/class.py"
5959 runTagging blob symbolsToSummarize tree `shouldBe`
60- [ Tag " Foo" " Class" (Span (Pos 1 1 ) (Pos 5 17 )) [" Statements" ] (Just " class Foo" ) (Just " \"\"\" The Foo class\"\"\" " )
61- , Tag " f" " Function" (Span (Pos 3 5 ) (Pos 5 17 )) [" Statements" , " Class" , " Statements" ] (Just " def f(self)" ) (Just " \"\"\" The f method\"\"\" " )
60+ [ Tag " Foo" " Class" (Span (Pos 1 1 ) (Pos 5 17 )) [" Statements" ] (Just " class Foo: " ) (Just " \"\"\" The Foo class\"\"\" " )
61+ , Tag " f" " Function" (Span (Pos 3 5 ) (Pos 5 17 )) [" Statements" , " Class" , " Statements" ] (Just " def f(self): " ) (Just " \"\"\" The f method\"\"\" " )
6262 ]
6363
6464 it " produces tags for multi-line functions" $ do
0 commit comments