aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/firrtlTests/ReplSeqMemTests.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/scala/firrtlTests/ReplSeqMemTests.scala b/src/test/scala/firrtlTests/ReplSeqMemTests.scala
index 414fc6af..9f83bec2 100644
--- a/src/test/scala/firrtlTests/ReplSeqMemTests.scala
+++ b/src/test/scala/firrtlTests/ReplSeqMemTests.scala
@@ -49,6 +49,12 @@ class ReplSeqMemSpec extends SimpleTransformSpec {
}.get
// Verify that this does not throw an exception
val fromConf = MemConf.fromString(text)
+ // Verify that the number of lines in the Conf file is equivalent to the number
+ // of entries (no missing or extra newlines)
+ require(
+ fromConf.size == text.count(_ == '\n'),
+ s"Unexpected newlines in mem.conf file containing ${fromConf.size} confs:\n${text}"
+ )
// Verify the mems in the conf are the same as the expected ones
require(
Set(fromConf: _*) == mems,