Ihar S
03/13/2021, 9:50 PMclass Math extends Specification {
def "maximum of two numbers"() {
given: "a and b"
when:
def result = Math.max(a, b)
then: "result is c"
result == c
where:
a | b || c
1 | 3 || 3
7 | 4 || 4
0 | 0 || 0
}
}