From 898efea92e9e13775b39dd7fb92cac420334b9c9 Mon Sep 17 00:00:00 2001 From: ducky Date: Thu, 10 Dec 2015 16:22:59 -0800 Subject: Add BlackBox support and test, refactor execute => assertTesterPasses --- src/test/scala/chiselTests/OptionBundle.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/scala/chiselTests/OptionBundle.scala') 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 { -- cgit v1.2.3