RosettaCodeData/Task/Find-common-directory-path/Groovy/find-common-directory-path-2.groovy

11 lines
303 B
Groovy
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
println commonPath('/',
'/home/user1/tmp/coverage/test',
'/home/user1/tmp/covert/operator',
'/home/user1/tmp/coven/members')
println commonPath('/',
'/home/user1/tmp/coverage/test',
'/home/user1/tmp/covert/test',
'/home/user1/tmp/coven/test',
'/home/user1/tmp/covers/test')