Skip to content

Commit

Permalink
Add SInt deprecated compatibility tests
Browse files Browse the repository at this point in the history
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
  • Loading branch information
seldridge committed Jul 31, 2019
1 parent c875e6a commit 2056bd8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/scala/chiselTests/CompatibilitySpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -567,4 +567,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks
elaborate(new Foo)
}

behavior of "SInt"

it should "support legacy methods" in {
class Foo extends Module {
val io = new Bundle{}

info("!= works")
(SInt(-1) != SInt(-1)) shouldBe a [Bool]
}

elaborate(new Foo)
}

}

0 comments on commit 2056bd8

Please sign in to comment.