-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CommunitySuite: add tests for scala2 versions
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
scalafmt-tests-community/src/test/scala/org/scalafmt/community/CommunityScala2Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.scalafmt.community | ||
|
||
import scala.meta._ | ||
|
||
abstract class CommunityScala2Suite extends CommunitySuite { | ||
|
||
protected def getBuild( | ||
name: String, | ||
ref: String, | ||
dialect: sourcecode.Text[Dialect], | ||
files: Int, | ||
): CommunityBuild = CommunityBuild( | ||
"https://github.com/scala/scala.git", | ||
ref, | ||
name, | ||
Nil, | ||
files, | ||
dialect, | ||
) | ||
|
||
} | ||
|
||
class CommunityScala2_11Suite extends CommunityScala2Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-2.11", "v2.11.12", dialects.Scala211, 1286)) | ||
|
||
} | ||
|
||
class CommunityScala2_12Suite extends CommunityScala2Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-2.12", "v2.12.20", dialects.Scala212, 1277)) | ||
|
||
} | ||
|
||
class CommunityScala2_13Suite extends CommunityScala2Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-2.13", "v2.13.14", dialects.Scala213, 1287)) | ||
|
||
} |