From d80a482c842c4f2cf084b87bc456006460341c06 Mon Sep 17 00:00:00 2001 From: Minyong Li <ml10g20@soton.ac.uk> Date: Sun, 22 Aug 2021 22:44:22 +0100 Subject: [PATCH] core.QuarterRoundTest: fix comb test vector use --- .../uk/ac/soton/ecs/can/core/QuarterRoundTest.scala | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/test/scala/uk/ac/soton/ecs/can/core/QuarterRoundTest.scala b/src/test/scala/uk/ac/soton/ecs/can/core/QuarterRoundTest.scala index 5212ed5..740af7d 100644 --- a/src/test/scala/uk/ac/soton/ecs/can/core/QuarterRoundTest.scala +++ b/src/test/scala/uk/ac/soton/ecs/can/core/QuarterRoundTest.scala @@ -34,12 +34,11 @@ class QuarterRoundTest extends FlatSpec with ChiselScalatestTester { behavior of "The Combinational Quarter Round" - private def testCombinationalQuarterRound( - testVector: Seq[(UInt, UInt)] - ): Unit = test(new CombinationalQuarterRound) { c => - poke(c, testVectorRFC8439211) - expect(c, testVectorRFC8439211) - } + private def testCombinationalQuarterRound(tv: TestVector): Unit = + test(new CombinationalQuarterRound) { c => + poke(c, tv) + expect(c, tv) + } it should "pass RFC8439 2.1.1 test vector" in testCombinationalQuarterRound(testVectorRFC8439211) -- GitLab