File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/dotty/tools/scaladoc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ object RecentQueryStorage extends SafeLocalStorage[js.Array[RecentQuery]]("__REC
9
9
10
10
def addEntry (rq : RecentQuery ): Unit = {
11
11
val newData = getData :+ rq
12
- setData(newData.sortBy(_.timestamp).distinctBy(_.query).takeRight (maxEntries))
12
+ setData(newData.sortBy(_.timestamp).reverse. distinctBy(_.query).take (maxEntries))
13
13
}
14
14
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class MatchersTest:
44
44
pages.map { p =>
45
45
p -> matchers.map(_(p))
46
46
}.filterNot { (page, results) =>
47
- results.exists(_ == - 1 )
47
+ results.exists(r => r.priority == - 1 )
48
48
}.map((page, results) => page)
49
49
}
50
50
@@ -78,4 +78,4 @@ class MatchersTest:
78
78
byNameTestCase(" seQ" , " Seq" )
79
79
byNameTestCase(" lOrEqu" , " lessOrEqual" )
80
80
byNameTestCase(" teF" , " testFS" , " testF" )
81
- }
81
+ }
You can’t perform that action at this time.
0 commit comments