aboutsummaryrefslogtreecommitdiff
path: root/tests/directive/parsing.testscript
blob: 3f180f0295ae460c61d63109b5a560ce180df104 (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      : tests/directive/parsing.testscript
# license   : MIT; see accompanying LICENSE file

# Test overall directive parsing.
#

.include ../common.testscript

: assign
: Test differentiation with variable assignment.
:
{
  # Note: ? is expanded as pattern.

  $* <'print +foo' >'+foo' : plus
  $* <'print ?foo' >''     : ques

  $* <'print + foo' >'+ foo' : plus-ws-eq
  $* <'print ? foo' >'foo'   : ques-ws-eq

  $* <'print +' >'+' : plus-only
  $* <'print ?' >''  : ques-only
}