Updated Test
Build and Test (KnockOutWhist) TeamCity build finished

This commit is contained in:
2024-10-19 20:46:36 +02:00
parent deadb7473c
commit 88083bee86
@@ -1,10 +1,7 @@
package de.knockoutwhist.cards
import de.knockoutwhist.cards.CardValue.Ace
import de.knockoutwhist.cards.Suit.{Clubs, Spades}
import org.scalatest.matchers.must.Matchers
import org.scalatest.matchers.should.Matchers.should
import org.scalatest.matchers.should.Matchers.shouldBe
import org.scalatest.matchers.should.Matchers.{should, shouldBe}
import org.scalatest.wordspec.AnyWordSpec
import scala.collection.mutable.ListBuffer
@@ -46,9 +43,13 @@ class DeckTests extends AnyWordSpec with Matchers{
nextCard should not equal nextCard2
}
"supply a hand of 7 cards for the first round" in {
val hand = CardManager.createHand(7)
val hand = CardManager.createHand()
hand.cards should have size 7
}
"supply a hand of 2 cards" in {
val hand = CardManager.createHand(2)
hand.cards should have size 2
}
}
"A card" should {
"be displayed with correct value and Suit" in {