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 e5b580d commit 0525dfb
Showing 1 changed file with 41 additions and 0 deletions.
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))

}

0 comments on commit 0525dfb

Please sign in to comment.