1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Fix unit tests.

This commit is contained in:
Patrick Thomson 2019-09-30 16:00:44 -04:00
parent 896024902c
commit 37579d80a9

View File

@ -88,7 +88,7 @@ spec = do
it "correctly tags files containing multibyte UTF-8 characters" $ do
(blob, tree) <- parseTestFile rubyParser (Path.relFile "test/fixtures/ruby/tags/unicode_identifiers.rb")
runTagging blob symbolsToSummarize tree `shouldBe`
[ Tag "日本語" "Method" (Span (Pos 2 1) (Pos 4 4)) ["Statements"] (Just "def 日本語") (Just "# coding: utf-8")]
[ Tag "日本語" Method (Span (Pos 2 1) (Pos 4 4)) "def 日本語" (Just "# coding: utf-8")]
it "produces tags for methods and classes with docs" $ do
(blob, tree) <- parseTestFile rubyParser (Path.relFile "test/fixtures/ruby/tags/class_module.rb")