aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/lexer+description-line.test.testscript
blob: 2d87d24fcc2aba1d638d92cd53537dd6e5d3e34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# file      : build2/test/script/lexer+description-line.test.testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

test.arguments = description-line

: full
:
$* <" foo  bar " >>EOO
' foo  bar '
<newline>
EOO

: space
:
$* <"  " >>EOO
'  '
<newline>
EOO

: empty
:
$* <"" >>EOO
<newline>
EOO

: eof
:
$* <:"foo" >>EOO 2>>EOE != 0
'foo'
EOO
stdin:1:4: error: expected newline at the end of description line
EOE