From c875e6af9aaad80de1d305d9b5f80962dabe4b4c Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Wed, 31 Jul 2019 15:46:11 -0400 Subject: Add UInt deprecated compatibility tests Signed-off-by: Schuyler Eldridge --- src/test/scala/chiselTests/CompatibilitySpec.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/test') diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala index 88228475..97eb58d0 100644 --- a/src/test/scala/chiselTests/CompatibilitySpec.scala +++ b/src/test/scala/chiselTests/CompatibilitySpec.scala @@ -554,4 +554,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks elaborate(new Foo) } + behavior of "UInt" + + it should "support legacy methods" in { + class Foo extends Module { + val io = new Bundle{} + + info("!= works") + (UInt(1) != UInt(1)) shouldBe a [Bool] + } + + elaborate(new Foo) + } + } -- cgit v1.2.3