Skip to content

Commit

Permalink
test de Card, implementacion pasajera de Abstract Card para Abstract …
Browse files Browse the repository at this point in the history
…Player Test
  • Loading branch information
hugodiazroa committed Apr 13, 2023
1 parent 777b82e commit d46d76d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# backups (they are in github)
src/main/scala/gwent/Player/AbstractPlayer backup.scala

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
Expand Down
12 changes: 12 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ package gwent.CardTest
import gwent.Card.*
import munit.*

class CardTest extends FunSuite {
class AbstractCardTest extends FunSuite {

test("Card debe tener nommbre"){
val test: Card = new Card("Test")
assertEquals(test.nombre,"Test")
}

test("UnitCard debe tener fuerza, coste, tipo y efectos acertados") {
val geralt: UnitCard = new UnitCard("Geralt", 8, "mele", 6, List())
assertEquals(geralt.nombre, "Geralt")
Expand Down

0 comments on commit d46d76d

Please sign in to comment.