File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -200,18 +200,6 @@ class tests extends CompilerTest {
200
200
201
201
private val stdlibFiles : List [String ] = StdLibSources .whitelisted
202
202
203
- @ Test def checkWBLists = {
204
- val stdlibFilesBlackListed = StdLibSources .blacklisted
205
-
206
- val duplicates = stdlibFilesBlackListed.groupBy(x => x).filter(_._2.size > 1 ).filter(_._2.size > 1 )
207
- val msg = duplicates.map(x => s " ' ${x._1}' appears ${x._2.size} times " ).mkString(s " Duplicate entries in ${StdLibSources .blacklistFile}: \n " , " \n " , " \n " )
208
- assertTrue(msg, duplicates.isEmpty)
209
-
210
- val filesNotInStdLib = stdlibFilesBlackListed.toSet -- StdLibSources .all
211
- val msg2 = filesNotInStdLib.map(x => s " ' $x' " ).mkString(s " Entries in ${StdLibSources .blacklistFile} where not found: \n " , " \n " , " \n " )
212
- assertTrue(msg2, filesNotInStdLib.isEmpty)
213
- }
214
-
215
203
@ Test def compileStdLib = compileList(" compileStdLib" , stdlibFiles, " -migration" :: " -Yno-inline" :: scala2mode)
216
204
@ Test def compileMixed = compileLine(
217
205
""" ../tests/pos/B.scala
Original file line number Diff line number Diff line change @@ -57,3 +57,20 @@ object StdLibSources {
57
57
.toList
58
58
59
59
}
60
+
61
+ class StdLibSources {
62
+ import org .junit .Test
63
+ import org .junit .Assert ._
64
+
65
+ @ Test def checkWBLists = {
66
+ val stdlibFilesBlackListed = StdLibSources .blacklisted
67
+
68
+ val duplicates = stdlibFilesBlackListed.groupBy(x => x).filter(_._2.size > 1 ).filter(_._2.size > 1 )
69
+ val msg = duplicates.map(x => s " ' ${x._1}' appears ${x._2.size} times " ).mkString(s " Duplicate entries in ${StdLibSources .blacklistFile}: \n " , " \n " , " \n " )
70
+ assertTrue(msg, duplicates.isEmpty)
71
+
72
+ val filesNotInStdLib = stdlibFilesBlackListed.toSet -- StdLibSources .all
73
+ val msg2 = filesNotInStdLib.map(x => s " ' $x' " ).mkString(s " Entries in ${StdLibSources .blacklistFile} where not found: \n " , " \n " , " \n " )
74
+ assertTrue(msg2, filesNotInStdLib.isEmpty)
75
+ }
76
+ }
You can’t perform that action at this time.
0 commit comments