# file      : tests/tab-parser/testscript
# license   : MIT; see accompanying LICENSE file

: valid
:
: Roundtrip tab-files.
:
{
  : newline-term
  :
  $* <<EOF >>EOF
  abc
  def xyz
  fff
  EOF

  : eos-term
  :
  $* <:'abc' >'abc'

  : empty-lines
  :
  $* <<EOI >'def'
  # abc

    # abc
  def

  EOI

  : quoting
  :
  $* -l <<EOI >>EOO
  def k" l'"'m n"' xyz
  EOI
  def
  k" l'"'m n"'
  xyz
  EOO
}

: invalid
:
{
  : unterm-quoting
  :
  $* <<EOI >'123' 2>'cin:3:5: error: unterminated quoted string' == 1

  123
  ab"c
  xyz
  EOI
}
