Forgus / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

MultipleCompilationErrorsException when assert fails for multi-string with backslash #378

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
import spock.lang.Specification
class ExposeProblem extends Specification {

  def "everything fine when comparison passes and has multi-string with backslash"() {
    setup:
    assert "#fooo" == """\
#fooo\
"""
  }

  def "MultipleCompilationErrorsException when comparison fails and has multi-string with backslash"() {
    setup:
    assert "fooo" == """\
bar\
"""
  }

}

What version of Spock and Groovy are you using? Spock 0.7-groovy-1.8 and Groovy 
1.8.9.

Original issue reported on code.google.com by etie...@gradleware.com on 16 Oct 2014 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 16 Oct 2014 at 3:19