-
-
Notifications
You must be signed in to change notification settings - Fork 193
Cleanup/1886 cleanup global space in prim tests, replace pull_msg with expect_throw_msg #1947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…util-cleanup-part2
…4.1 (tags/RELEASE_600/final)
…util-cleanup-part2
…s/RELEASE_600/final)
…s/RELEASE_600/final)
…s/RELEASE_600/final)
This reverts commit 3f7c339.
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
EXPECT_THROW_MSG(stan::math::gp_exponential_cov(x_2, x_2, sigma_bad, l_bad), | ||
std::domain_error, " magnitude"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[optional] I think we should remove all these tests that expect specific error message when multiple arguments have errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, yeah. Will change just to expect throw.
test/unit/util.hpp
Outdated
namespace stan { | ||
namespace test { | ||
template <int R, int C> | ||
void correct_type_vector(const Eigen::Matrix<double, R, C>& x) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[optional] I think a better name would be expect_type_vector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few more of these tests that expect specific messages from multiple errors
Thanks. Done. |
…s/RELEASE_600/final)
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Summary
This PR advances #1886 with the following:
f
,fun
,f1
in namespaces (The namespace names are based on the file name)const char* function_ = "function";
from the global namespace of testsNo release notes as this is part of an ongoing project that is being done over multiple PRs. Will put release notes in the final one.
Tests
/
Side Effects
/
Checklist
Math issue Organize and cleanup the use of utils in test/ #1886
Copyright holder: Rok Češnovar, Univ. of Ljubljana
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
the basic tests are passing
./runTests.py test/unit
)make test-headers
)make test-math-dependencies
)make doxygen
)make cpplint
)the code is written in idiomatic C++ and changes are documented in the doxygen
the new changes are tested