aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/pre-parse.testscript
blob: 1afd5669730b1de7dba2a4b4078da21360cae9d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# file      : unit-tests/test/script/parser/pre-parse.testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

: attribute
:
{
  : pair
  :
  $* <<EOI 2>>EOE != 0
  x = [foo=bar]
  EOI
  testscript:1:5: error: unknown value attribute foo=bar
  EOE

  : pair-empty
  :
  $* <<EOI 2>>EOE != 0
  x = [foo=]
  EOI
  testscript:1:5: error: unknown value attribute foo
  EOE
}