diff options
| author | Andrew Waterman | 2016-04-15 00:39:32 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2016-04-15 00:39:32 -0700 |
| commit | 4249c7dea0fece098df99c4713987a44cebf84b0 (patch) | |
| tree | b36963de23c6941453a32d8cc923938f03cace88 /src/test/scala | |
| parent | 09ce36e79ba5a999d0e47ec482bbf06857cf7043 (diff) | |
Test FIRRTL string literals more aggressively
Diffstat (limited to 'src/test/scala')
| -rw-r--r-- | src/test/scala/chiselTests/Printf.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/Printf.scala b/src/test/scala/chiselTests/Printf.scala index 950f315a..eb8b4b25 100644 --- a/src/test/scala/chiselTests/Printf.scala +++ b/src/test/scala/chiselTests/Printf.scala @@ -12,6 +12,11 @@ class SinglePrintfTester() extends BasicTester { stop() } +class ASCIIPrintfTester() extends BasicTester { + printf((0x20 to 0x7e).map(_ toChar).mkString.replace("%", "%%")) + stop() +} + class MultiPrintfTester() extends BasicTester { val x = UInt(254) val y = UInt(255) @@ -26,4 +31,7 @@ class PrintfSpec extends ChiselFlatSpec { "A printf with multiple arguments" should "run" in { assertTesterPasses { new MultiPrintfTester } } + "A printf with ASCII characters 1-127" should "run" in { + assertTesterPasses { new ASCIIPrintfTester } + } } |
