-
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
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
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,41 @@ | ||
package org.scalafmt.community | ||
|
||
import scala.meta._ | ||
|
||
abstract class CommunityScala2Suite extends CommunitySuite { | ||
|
||
protected def getBuild( | ||
ref: String, | ||
dialect: sourcecode.Text[Dialect], | ||
files: Int, | ||
): CommunityBuild = CommunityBuild( | ||
"https://github.com/scala/scala.git", | ||
ref, | ||
"scala2", | ||
Nil, | ||
files, | ||
dialect, | ||
) | ||
|
||
} | ||
|
||
class CommunityScala2_11Suite extends CommunityScala2Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("v2.11.12", dialects.Scala211, 1286)) | ||
|
||
} | ||
|
||
class CommunityScala2_12Suite extends CommunityScala2Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("v2.12.20", dialects.Scala212, 1277)) | ||
|
||
} | ||
|
||
class CommunityScala2_13Suite extends CommunityScala2Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("v2.13.14", dialects.Scala213, 1287)) | ||
|
||
} |