From af415532cf160e63e971ceb301833b8433c18a50 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Thu, 23 Nov 2023 03:11:56 -0800 Subject: cleanup --- src/test/scala/chiselTests/IntegerMathSpec.scala | 32 ------------------------ 1 file changed, 32 deletions(-) delete mode 100644 src/test/scala/chiselTests/IntegerMathSpec.scala (limited to 'src/test/scala/chiselTests/IntegerMathSpec.scala') diff --git a/src/test/scala/chiselTests/IntegerMathSpec.scala b/src/test/scala/chiselTests/IntegerMathSpec.scala deleted file mode 100644 index 166e47bd..00000000 --- a/src/test/scala/chiselTests/IntegerMathSpec.scala +++ /dev/null @@ -1,32 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -package chiselTests - -import chisel3._ -import chisel3.testers.BasicTester - -class IntegerMathTester extends BasicTester { - - //TODO: Add more operators - - /* absolute values tests */ - - val uint = 3.U(4.W) - val sint = (-3).S - val sintpos = 3.S - val wrongSIntPos = 4.S - - assert(uint.abs() === uint) - assert(sint.abs() === sintpos) - assert(sintpos.abs() === sintpos) - - assert(sint.abs() =/= wrongSIntPos) - - stop() -} - -class IntegerMathSpec extends ChiselPropSpec { - property("All integer ops should return the correct result") { - assertTesterPasses { new IntegerMathTester } - } -} -- cgit v1.2.3