tmultilinestring32.pp 348 B

1234567891011121314151617181920
  1. { %fail }
  2. // Multiline string but not properly indented
  3. {$mode objfpc}
  4. const
  5. s = '''
  6. this
  7. is
  8. a multiline
  9. string
  10. ''';
  11. stest = 'this'+sLineBreak+'is'+slinebreak+'a multiline'+sLineBreak+'string';
  12. begin
  13. if not (s=stest) then
  14. begin
  15. writeln('Wrong string, expected "',stest,'" but got: "',s,'"');
  16. halt(1);
  17. end;
  18. end.