RosettaCodeData/Task/Comma-quibbling/Groovy/comma-quibbling-2.groovy
2023-07-01 13:44:08 -04:00

4 lines
244 B
Groovy

['{}': [], '{ABC}': ['ABC'], '{ABC and DEF}': ['ABC', 'DEF'], '{ABC, DEF, G and H}': ['ABC', 'DEF', 'G', 'H']].each { expected, input ->
println "Verifying commaQuibbling($input) == $expected"
assert commaQuibbling(input) == expected
}