aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/options/phases
diff options
context:
space:
mode:
authorJim Lawson2020-03-25 09:35:21 -0700
committerGitHub2020-03-25 16:35:21 +0000
commit9995f081291d974a6b5ad319e67a9d19cdc4a56d (patch)
tree351bcbc4cedc97ffbb219f043c4961e52d12ada7 /src/test/scala/firrtlTests/options/phases
parentbdac6e1c55694f1562a56b2eb0716733bd2f1fc0 (diff)
Update scalatest 3.1.0 (#1383)
* Removed unused imports in src/test/ * Update ScalaTest deprecations. * Update scalatest from 3.0.8 to 3.1.0; apply auto fix for deprecations Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'src/test/scala/firrtlTests/options/phases')
-rw-r--r--src/test/scala/firrtlTests/options/phases/AddDefaultsSpec.scala5
-rw-r--r--src/test/scala/firrtlTests/options/phases/ChecksSpec.scala5
-rw-r--r--src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala5
-rw-r--r--src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala5
4 files changed, 12 insertions, 8 deletions
diff --git a/src/test/scala/firrtlTests/options/phases/AddDefaultsSpec.scala b/src/test/scala/firrtlTests/options/phases/AddDefaultsSpec.scala
index 362d139f..3401a408 100644
--- a/src/test/scala/firrtlTests/options/phases/AddDefaultsSpec.scala
+++ b/src/test/scala/firrtlTests/options/phases/AddDefaultsSpec.scala
@@ -2,12 +2,13 @@
package firrtlTests.options.phases
-import org.scalatest.{FlatSpec, Matchers}
import firrtl.options.{Phase, TargetDirAnnotation}
import firrtl.options.phases.AddDefaults
+import org.scalatest.flatspec.AnyFlatSpec
+import org.scalatest.matchers.should.Matchers
-class AddDefaultsSpec extends FlatSpec with Matchers {
+class AddDefaultsSpec extends AnyFlatSpec with Matchers {
class Fixture {
val phase: Phase = new AddDefaults
diff --git a/src/test/scala/firrtlTests/options/phases/ChecksSpec.scala b/src/test/scala/firrtlTests/options/phases/ChecksSpec.scala
index b988f838..96d6569d 100644
--- a/src/test/scala/firrtlTests/options/phases/ChecksSpec.scala
+++ b/src/test/scala/firrtlTests/options/phases/ChecksSpec.scala
@@ -2,13 +2,14 @@
package firrtlTests.options.phases
-import org.scalatest.{FlatSpec, Matchers}
import firrtl.AnnotationSeq
import firrtl.options.{OptionsException, OutputAnnotationFileAnnotation, Phase, TargetDirAnnotation}
import firrtl.options.phases.Checks
+import org.scalatest.flatspec.AnyFlatSpec
+import org.scalatest.matchers.should.Matchers
-class ChecksSpec extends FlatSpec with Matchers {
+class ChecksSpec extends AnyFlatSpec with Matchers {
val targetDir = TargetDirAnnotation("foo")
val annoOut = OutputAnnotationFileAnnotation("bar")
diff --git a/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala b/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala
index defda6c0..7d20ac89 100644
--- a/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala
+++ b/src/test/scala/firrtlTests/options/phases/GetIncludesSpec.scala
@@ -2,7 +2,6 @@
package firrtlTests.options.phases
-import org.scalatest.{FlatSpec, Matchers}
import java.io.{File, PrintWriter}
@@ -12,6 +11,8 @@ import firrtl.annotations.{AnnotationFileNotFoundException, JsonProtocol,
import firrtl.options.phases.GetIncludes
import firrtl.options.{InputAnnotationFileAnnotation, Phase}
import firrtl.util.BackendCompilationUtilities
+import org.scalatest.flatspec.AnyFlatSpec
+import org.scalatest.matchers.should.Matchers
case object A extends NoTargetAnnotation
case object B extends NoTargetAnnotation
@@ -19,7 +20,7 @@ case object C extends NoTargetAnnotation
case object D extends NoTargetAnnotation
case object E extends NoTargetAnnotation
-class GetIncludesSpec extends FlatSpec with Matchers with BackendCompilationUtilities with firrtl.testutils.Utils {
+class GetIncludesSpec extends AnyFlatSpec with Matchers with BackendCompilationUtilities with firrtl.testutils.Utils {
val dir = new File("test_run_dir/GetIncludesSpec")
dir.mkdirs()
diff --git a/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala b/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala
index 176362cc..e71eaedf 100644
--- a/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala
+++ b/src/test/scala/firrtlTests/options/phases/WriteOutputAnnotationsSpec.scala
@@ -2,7 +2,6 @@
package firrtlTests.options.phases
-import org.scalatest.{FlatSpec, Matchers}
import java.io.File
@@ -10,8 +9,10 @@ import firrtl.AnnotationSeq
import firrtl.annotations.{DeletedAnnotation, NoTargetAnnotation}
import firrtl.options.{InputAnnotationFileAnnotation, OutputAnnotationFileAnnotation, Phase, WriteDeletedAnnotation}
import firrtl.options.phases.{GetIncludes, WriteOutputAnnotations}
+import org.scalatest.flatspec.AnyFlatSpec
+import org.scalatest.matchers.should.Matchers
-class WriteOutputAnnotationsSpec extends FlatSpec with Matchers with firrtl.testutils.Utils {
+class WriteOutputAnnotationsSpec extends AnyFlatSpec with Matchers with firrtl.testutils.Utils {
val dir = "test_run_dir/WriteOutputAnnotationSpec"