aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/description-line.test
blob: 5f2ea13a7966bbc4327bf4cccc92cd4a654c2b19 (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      : unit-tests/test/script/lexer/description-line.test
# copyright : Copyright (c) 2014-2018 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