Skip to content

Commit

Permalink
CommunitySuite: add tests for scala2 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Sep 26, 2024
1 parent 47c6ac9 commit df1c8e2
Showing 1 changed file with 42 additions and 0 deletions.
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))

}

0 comments on commit df1c8e2

Please sign in to comment.