def str = / multiline string no need to escape slash \n / assert str instanceof String assert str.readLines().size() == 4 assert str.contains('\\n')