diff options
| author | Jack Koenig | 2020-08-15 10:16:28 -0700 |
|---|---|---|
| committer | GitHub | 2020-08-15 10:16:28 -0700 |
| commit | f1c314e6c7e116df33ffc215ec907212037292dc (patch) | |
| tree | f06060e9fb52f4f5b30bc56db78acb6bd371642d /src/test/scala/firrtlTests/FileUtilsSpec.scala | |
| parent | 2e5f942d25d7afab79ee1263c5d6833cad9d743d (diff) | |
| parent | 9adbe1ede59f9aeb25e71fd8318a4e7e46c4cc34 (diff) | |
Merge pull request #1852 from freechipsproject/format-src-4
Apply Scalafmt Rewriting
Diffstat (limited to 'src/test/scala/firrtlTests/FileUtilsSpec.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/FileUtilsSpec.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/scala/firrtlTests/FileUtilsSpec.scala b/src/test/scala/firrtlTests/FileUtilsSpec.scala index 43d35048..5a438251 100644 --- a/src/test/scala/firrtlTests/FileUtilsSpec.scala +++ b/src/test/scala/firrtlTests/FileUtilsSpec.scala @@ -2,17 +2,16 @@ package firrtlTests - import firrtl.FileUtils import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers class FileUtilsSpec extends AnyFlatSpec with Matchers { - private val sampleAnnotations: String = "annotations/SampleAnnotations.anno.json" + private val sampleAnnotations: String = "annotations/SampleAnnotations.anno.json" private val sampleAnnotationsFileName: String = s"src/test/resources/$sampleAnnotations" - behavior of "FileUtils.getLines" + behavior.of("FileUtils.getLines") it should "read from a string filename" in { FileUtils.getLines(sampleAnnotationsFileName).size should be > 0 @@ -22,7 +21,7 @@ class FileUtilsSpec extends AnyFlatSpec with Matchers { FileUtils.getLines(new java.io.File(sampleAnnotationsFileName)).size should be > 0 } - behavior of "FileUtils.getText" + behavior.of("FileUtils.getText") it should "read from a string filename" in { FileUtils.getText(sampleAnnotationsFileName).size should be > 0 @@ -32,13 +31,13 @@ class FileUtilsSpec extends AnyFlatSpec with Matchers { FileUtils.getText(new java.io.File(sampleAnnotationsFileName)).size should be > 0 } - behavior of "FileUtils.getLinesResource" + behavior.of("FileUtils.getLinesResource") it should "read from a resource" in { FileUtils.getLinesResource(s"/$sampleAnnotations").size should be > 0 } - behavior of "FileUtils.getTextResource" + behavior.of("FileUtils.getTextResource") it should "read from a resource" in { FileUtils.getTextResource(s"/$sampleAnnotations").split("\n").size should be > 0 |
