RosettaCodeData/Task/Comma-quibbling/Groovy/comma-quibbling-2.groovy
2015-02-20 09:02:09 -05: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
}