mirror of
https://github.com/typelevel/simulacrum.git
synced 2024-11-24 13:42:02 +03:00
Bump up Scala version
This commit is contained in:
parent
2d5bd9b294
commit
b0e391c560
@ -9,8 +9,8 @@ language: scala
|
||||
|
||||
scala:
|
||||
- "2.11.12"
|
||||
- "2.12.10"
|
||||
- "2.13.1"
|
||||
- "2.12.11"
|
||||
- "2.13.2"
|
||||
|
||||
jdk:
|
||||
- openjdk8
|
||||
|
@ -33,7 +33,7 @@ lazy val commonSettings = Seq(
|
||||
scalacOptions in (Compile, console) ~= { _ filterNot { o => o == "-Ywarn-unused-import" || o == "-Xfatal-warnings" } },
|
||||
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value,
|
||||
scalaVersion := Scala211,
|
||||
crossScalaVersions := Seq(Scala211, "2.12.10", "2.13.0"),
|
||||
crossScalaVersions := Seq(Scala211, "2.12.11", "2.13.2"),
|
||||
resolvers ++= Seq(
|
||||
Resolver.sonatypeRepo("releases"),
|
||||
Resolver.sonatypeRepo("snapshots")
|
||||
|
@ -1,13 +1,14 @@
|
||||
package simulacrum
|
||||
|
||||
import org.scalatest.{ WordSpec, Matchers }
|
||||
|
||||
// NB: These imports are because the tests are compiled with `-Yno-imports`, to
|
||||
// ensure that simulacrum works in projects that use that flag.
|
||||
import scala.Int
|
||||
import scala.collection.immutable.List
|
||||
import org.scalatest.matchers.should.Matchers
|
||||
import org.scalatest.wordspec.AnyWordSpec
|
||||
|
||||
class JvmTypeClassTest extends WordSpec with Matchers {
|
||||
class JvmTypeClassTest extends AnyWordSpec with Matchers {
|
||||
"the @typeclass annotation" should {
|
||||
"generate serializable traits by default" in {
|
||||
serializeDeserialize(Semigroup[Int]).append(1, 2) shouldBe 3
|
||||
|
@ -3,9 +3,10 @@ package simulacrum.jvmexamples
|
||||
import simulacrum._
|
||||
import shapeless.test.illTyped
|
||||
|
||||
import org.scalatest.{ WordSpec, Matchers }
|
||||
import org.scalatest.matchers.should.Matchers
|
||||
import org.scalatest.wordspec.AnyWordSpec
|
||||
|
||||
class Examples extends WordSpec with Matchers {
|
||||
class Examples extends AnyWordSpec with Matchers {
|
||||
|
||||
"the @typeclass annotation" should {
|
||||
|
||||
|
@ -2,9 +2,10 @@ package simulacrum.examples
|
||||
|
||||
import simulacrum._
|
||||
|
||||
import org.scalatest.{ WordSpec, Matchers }
|
||||
import org.scalatest.matchers.should.Matchers
|
||||
import org.scalatest.wordspec.AnyWordSpec
|
||||
|
||||
class Examples extends WordSpec with Matchers {
|
||||
class Examples extends AnyWordSpec with Matchers {
|
||||
|
||||
"the @typeclass annotation" should {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user