Skip to content

Commit 3f0eaf6

Browse files
committed
Add regression test
1 parent fc05ab3 commit 3f0eaf6

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

topiary-cli/tests/samples/expected/nickel.ncl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,20 @@
139139
1
140140
else
141141
3
142-
)
142+
),
143+
144+
# regression test for https://github.com/tweag/topiary/issues/743
145+
# (partially fixed)
146+
let foo
147+
| Number
148+
= [
149+
1,
150+
2,
151+
3
152+
]
153+
in
154+
foo
155+
@ [],
143156
],
144157

145158
# Nickel standard library as of 44aef1672a09a76a71946fbf822713747ab7b9df

topiary-cli/tests/samples/input/nickel.ncl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,21 @@ bar == 'Goodbye
127127
if x == 1 then
128128
1
129129
else
130-
3)
130+
3),
131+
132+
# regression test for https://github.com/tweag/topiary/issues/743
133+
# (partially fixed)
134+
let foo
135+
| Number
136+
=
137+
[
138+
1,
139+
2,
140+
3
141+
]
142+
in
143+
foo
144+
@ [],
131145
],
132146

133147
# Nickel standard library as of 44aef1672a09a76a71946fbf822713747ab7b9df

0 commit comments

Comments
 (0)