Skip to content
Snippets Groups Projects
Verified Commit 247c4258 authored by v-lafeychine's avatar v-lafeychine
Browse files

Tests: Type computeMultiplicator

parent 1d63eaca
No related branches found
No related tags found
1 merge request!2Resolve "Setup GitLab"
Pipeline #9668 passed with stage
in 2 minutes and 22 seconds
import collection.mutable.Stack
import org.scalatest.funsuite.AnyFunSuite
class StackSpec extends AnyFunSuite:
test("Strong type should have increased damage multiplicator") {
assert(Fire.computeMultiplier(Grass) == 2)
}
test("Weak type should have decreased damage multiplicator") {
assert(Fire.computeMultiplier(Water) == 0.5)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment