-
Notifications
You must be signed in to change notification settings - Fork 276
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 scala3 versions
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
scalafmt-tests-community/src/test/scala/org/scalafmt/community/CommunityScala3Suite.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,49 @@ | ||
package org.scalafmt.community | ||
|
||
import scala.meta._ | ||
|
||
abstract class CommunityScala3Suite extends CommunitySuite { | ||
|
||
protected def getBuild( | ||
name: String, | ||
ref: String, | ||
dialect: sourcecode.Text[Dialect], | ||
files: Int, | ||
) = CommunityBuild( | ||
"https://github.com/scala/scala3.git", | ||
ref, | ||
name, | ||
Nil, | ||
files, | ||
dialect, | ||
) | ||
|
||
} | ||
|
||
class CommunityScala3_0Suite extends CommunityScala3Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-3.0", "3.0.2", dialects.Scala30, 698)) | ||
|
||
} | ||
|
||
class CommunityScala3_1Suite extends CommunityScala3Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-3.1", "3.1.3", dialects.Scala31, 747)) | ||
|
||
} | ||
|
||
class CommunityScala3_2Suite extends CommunityScala3Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-3.2", "3.2.2", dialects.Scala32, 791)) | ||
|
||
} | ||
|
||
class CommunityScala3_3Suite extends CommunityScala3Suite { | ||
|
||
override protected def builds = | ||
Seq(getBuild("scala-3.3", "3.3.3", dialects.Scala33, 861)) | ||
|
||
} |