aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/pre-parse.testscript
blob: d37f9724988b41ecbe8360ae3e7961a395b8901b (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-2018 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
}