-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1456 from stan-dev/test-coverage
Add a bunch of edge-case tests
- Loading branch information
Showing
131 changed files
with
2,864 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/integration/bad/algebra_solver/bad_solve_newton_lpdf.stan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
functions { | ||
|
||
real algebra_system_lpdf(vector x, vector y, array[] real dat, | ||
array[] int dat_int) { | ||
vector[2] f_x; | ||
f_x[1] = x[1] - y[1]; | ||
f_x[2] = x[2] - y[2]; | ||
return f_x[1]; | ||
} | ||
} | ||
data { | ||
|
||
} | ||
transformed data { | ||
vector[2] x; | ||
vector[2] y; | ||
array[0] real dat; | ||
array[0] int dat_int; | ||
|
||
} | ||
parameters { | ||
vector[2] x_p; | ||
vector[2] y_p; | ||
} | ||
transformed parameters { | ||
vector[2] theta_p; | ||
|
||
theta_p = solve_newton(algebra_system_lpdf, x, y, dat, dat_int); | ||
|
||
} |
Oops, something went wrong.