Skip to content

Commit

Permalink
Name the tested parameter explicitly in hardware test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin.lesage committed Apr 12, 2024
1 parent f2006f6 commit 4d80ed0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4d80ed0

Please sign in to comment.