Skip to content

Commit 43b8cb7

Browse files
committed
Update test
1 parent e4894e2 commit 43b8cb7

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

test/integration/good/fun-defs-lpdf.stan

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ functions {
55
real foo_bar_lpdf(array[,,,] real x){
66
return 1.0;
77
}
8-
real baz_foo_lpdf(complex z){
9-
return get_imag(z);
8+
real baz_foo_lpdf(complex z, real a){
9+
return get_imag(z) * a;
1010
}
1111
}
1212
parameters {
1313
real y;
14+
complex z;
15+
array[1,1,1,1] real arr;
1416
}
1517
model {
1618
y ~ bar_baz(3.2);
19+
z ~ baz_foo(1.5);
20+
arr ~ foo_bar();
1721
}

test/integration/good/pretty.expected

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,15 +3016,19 @@ functions {
30163016
real foo_bar_lpdf(array[,,,] real x) {
30173017
return 1.0;
30183018
}
3019-
real baz_foo_lpdf(complex z) {
3020-
return get_imag(z);
3019+
real baz_foo_lpdf(complex z, real a) {
3020+
return get_imag(z) * a;
30213021
}
30223022
}
30233023
parameters {
30243024
real y;
3025+
complex z;
3026+
array[1, 1, 1, 1] real arr;
30253027
}
30263028
model {
30273029
y ~ bar_baz(3.2);
3030+
z ~ baz_foo(1.5);
3031+
arr ~ foo_bar();
30283032
}
30293033

30303034
$ ../../../../install/default/bin/stanc --auto-format fun-return-typ1.stan

0 commit comments

Comments
 (0)