aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/pre-parse.test
blob: d2ae7ce0baeb3e3fa3ba7d9095049b2479c89ef1 (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.test
# copyright : Copyright (c) 2014-2017 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
}