meson.build 376 B

1234567891011121314151617181920212223242526
  1. project('multiline string', 'c')
  2. x = '''hello again'''
  3. y = '''hello
  4. again'''
  5. if x == y
  6. error('Things are wrong.')
  7. endif
  8. multieol = '''
  9. '''
  10. singleeol = '\n'
  11. if multieol != singleeol
  12. error('Newline quoting is broken.')
  13. endif
  14. # And one more for good measure.
  15. quote1 = ''' ' '''.strip()
  16. quote2 = '\''
  17. if quote1 != quote2
  18. error('Single quote quoting is broken.')
  19. endif