tmultilinestring29.pp 313 B

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