From 4d80ed0ae06634c0d5a414bf8d1bf36af0f03882 Mon Sep 17 00:00:00 2001 From: "benjamin.lesage" Date: Fri, 12 Apr 2024 16:43:29 +0200 Subject: [PATCH] Name the tested parameter explicitly in hardware test cases --- .../pmlanalyzer/pml/model/hardware/HardwareTest.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/scala/onera/pmlanalyzer/pml/model/hardware/HardwareTest.scala b/src/test/scala/onera/pmlanalyzer/pml/model/hardware/HardwareTest.scala index 4161317..de694ee 100644 --- a/src/test/scala/onera/pmlanalyzer/pml/model/hardware/HardwareTest.scala +++ b/src/test/scala/onera/pmlanalyzer/pml/model/hardware/HardwareTest.scala @@ -39,18 +39,18 @@ class HardwareTest extends AnyFlatSpec with should.Matchers { } it should "have only specified services when specified" in { - val t: Target = Target(Set(Load("a"), Load("b")), false) + val t: Target = Target(Set(Load("a"), Load("b")), withDefaultServices = false) t.services.size shouldEqual 2 exactly(2, t.services) shouldBe a [Load] - val s = Target(Set(Store("a")), false) + val s = Target(Set(Store("a")), withDefaultServices = false) s.services.size shouldEqual 1 exactly(1, s.services) shouldBe a[Store] - val i = Target(Set.empty, false) + val i = Target(Set.empty, withDefaultServices = false) i.services.size shouldEqual 0 - val j = Target(Symbol("j"), false) + val j = Target(Symbol("j"), withDefaultServices = false) j.services.size shouldEqual 0 }