diff --git a/src/test/scala/Test.scala b/src/test/scala/Test.scala index 862e20d9f311ee914168ff46353100fe9a01211c..b03d3a758691b67566ed5129a5b1fb6e70b875d2 100644 --- a/src/test/scala/Test.scala +++ b/src/test/scala/Test.scala @@ -4,9 +4,17 @@ import org.scalatest.funsuite.AnyFunSuite class StackSpec extends AnyFunSuite: test("Strong type should have increased damage multiplicator") { - assert(Fire.typeEfficiency(Grass) == 2) + assert(Fire.typeEfficiency(Grass).fatcor == 2.0) } test("Weak type should have decreased damage multiplicator") { - assert(Fire.computeMultiplier(Water) == 0.5) + assert(Bug.typeEfficiency(Fight).factor == 0.5) + } + + test("Common type should have neutral damage multiplicator") { + assert(Electric.typeEfficiency(Poison).factor == 1.0) + } + + test("Inefficient type should have null damage multiplicator") { + assert(Normal.typeEfficiency(Ghost).factor == 0.0) }