summaryrefslogtreecommitdiff
path: root/test/generate1.exp
blob: 8376e747b0b3b97901a195fb9a9b3f4a9deb3950 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
*** SUCCESS ***

hello
def dude():
    yes
    awesome;

    # Here we have a comment
    def realy_awesome(): # hi there
      in_more

      same_level 
      def one_liner(): first; second # both inside one_liner

    back_down

last_statement

# dude, this is a comment
 # some more
hello
if 1:
    yes
    awesome;

    # Here we have a comment
    if ('hello'): # hi there
      in_more

      same_level 
      if ['dude', 'dudess'].horsie(): first; second # both inside one_liner
      1

    back_down

last_statement

hello = 1.1(20);

# subscription
a[1] = b[2];

# simple slicing
c[1:1] = d[2:2];

# simple slicing
e[1:1, 2:2] = f[3:3, 4:4];
***
STMT: hello
STMT: def dude():
    yes
    awesome;

    # Here we have a comment
    def realy_awesome(): # hi there
      in_more

      same_level 
      def one_liner(): first; second # both inside one_liner

    back_down

STMT: yes
STMT: awesome;

    # Here we have a comment
STMT: def realy_awesome(): # hi there
      in_more

      same_level 
      def one_liner(): first; second # both inside one_liner

STMT: in_more

STMT: same_level 
STMT: def one_liner(): first; second # both inside one_liner

STMT: back_down

STMT: last_statement

# dude, this is a comment
 # some more
STMT: hello
STMT: if 1:
    yes
    awesome;

    # Here we have a comment
    if ('hello'): # hi there
      in_more

      same_level 
      if ['dude', 'dudess'].horsie(): first; second # both inside one_liner
      1

    back_down

STMT: yes
STMT: awesome;

    # Here we have a comment
STMT: if ('hello'): # hi there
      in_more

      same_level 
      if ['dude', 'dudess'].horsie(): first; second # both inside one_liner
      1

STMT: in_more

STMT: same_level 
STMT: if ['dude', 'dudess'].horsie(): first; second # both inside one_liner
STMT: 1

STMT: back_down

STMT: last_statement

STMT: hello = 1.1(20);

# subscription
STMT: a[1] = b[2];

# simple slicing
STMT: c[1:1] = d[2:2];

# simple slicing
STMT: e[1:1, 2:2] = f[3:3, 4:4];
TARGET SUBSCRIPTION: [1]
TARGET SIMPLE SLICING: [1:1]
TARGET EXTENDED SLICING: [1:1, 2:2]
PRIMARY SUBSCRIPTION: [2]
PRIMARY SIMPLE SLICING: [2:2]
PRIMARY EXTENDED SLICING: [3:3, 4:4]
*** SUCCESS ***