summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/OptionBundle.scala
diff options
context:
space:
mode:
authorducky2015-12-10 16:22:59 -0800
committerducky2016-01-30 14:45:55 -0800
commit898efea92e9e13775b39dd7fb92cac420334b9c9 (patch)
treebb7cdb52fbfe90c44de5846f5175b27d894e3b27 /src/test/scala/chiselTests/OptionBundle.scala
parent8d8c407c0c1693160d6f0972165e376e09aa99c9 (diff)
Add BlackBox support and test, refactor execute => assertTesterPasses
Diffstat (limited to 'src/test/scala/chiselTests/OptionBundle.scala')
-rw-r--r--src/test/scala/chiselTests/OptionBundle.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/OptionBundle.scala b/src/test/scala/chiselTests/OptionBundle.scala
index 0e6beb86..c5a347e6 100644
--- a/src/test/scala/chiselTests/OptionBundle.scala
+++ b/src/test/scala/chiselTests/OptionBundle.scala
@@ -46,12 +46,12 @@ class InvalidOptionBundleTester() extends BasicTester {
class OptionBundleSpec extends ChiselFlatSpec {
"A Bundle with an Option field" should "work properly if the Option field is not None" in {
- assert(execute { new SomeOptionBundleTester(true) })
- assert(execute { new SomeOptionBundleTester(false) })
+ assertTesterPasses { new SomeOptionBundleTester(true) }
+ assertTesterPasses { new SomeOptionBundleTester(false) }
}
"A Bundle with an Option field" should "compile if the Option field is None" in {
- assert(execute { new NoneOptionBundleTester() })
+ assertTesterPasses { new NoneOptionBundleTester() }
}
"A Bundle with an Option field" should "assert out accessing a None Option field" in {