Skip to content

Commit

Permalink
Fix scaladoc-js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperFKorban committed Jul 5, 2021
1 parent 39f1230 commit f727ca1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scaladoc-js/test/dotty/dokka/QueryParserTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QueryParserTest:
"given",
"type"
)
private def testCase(query: String, result: List[Matchers]) = {
private def testCase(query: String, result: EngineQuery) = {
val parsed = queryParser.parse(query)
assertEquals(
s"Query parser test error: for query: $query expected $result but found $parsed",
Expand All @@ -28,8 +28,8 @@ class QueryParserTest:

@Test
def queryParserTests() = {
kinds.foreach(k => testCase(s"$k ", List(ByKind(k), ByName(""))))
testCase("trait", List(ByName("trait")))
testCase("trait A", List(ByKind("trait"), ByName("A")))
testCase("`trait A`", List(ByName("trait A")))
kinds.foreach(k => testCase(s"$k ", EngineMatchersQuery(List(ByKind(k), ByName("")))))
testCase("trait", EngineMatchersQuery(List(ByName("trait"))))
testCase("trait A", EngineMatchersQuery(List(ByKind("trait"), ByName("A"))))
testCase("`trait A`", EngineMatchersQuery(List(ByName("trait A"))))
}

0 comments on commit f727ca1

Please sign in to comment.