aliakhtar / spock

Automatically exported from code.google.com/p/spock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultipleCompilationErrorsException when assert fails for multi-string with backslash

GoogleCodeExporter opened this issue · comments

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

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

  • Changed state: Duplicate