Skip to content

Organize and cleanup the use of utils in test/ #1886

@rok-cesnovar

Description

@rok-cesnovar

Description

There are some cleanup things that should to be done in the test/ folder:

  • EXPECT_MATRIX_NEAR macro is used a lot but defined in every file separately. Example: Let value_of and value_of_rec return expressions #1872 (comment)
  • gp_*_test.cpp files could replace the use of pull_msg with EXPECT_THROW_MSG
  • util.hpp are scattered all over the subfolders, reorganize them in /prim, /rev ,...
  • utils should be in stan::math::test or stan::test
  • functions/functors/... that are defined in the global space should be put in a file specific namespace Example: https://github.com/stan-dev/math/blob/develop/test/unit/math/mix/fun/col_test.cpp
    f() there should be in the col_test namespace.
  • expect_matrix_eq should be replaced by EXPECT_MATRIX_NEAR
  • expect_std_vector_eq should be replaced by a macro
  • clean up _works_with_other_functions tests that are redundant after we introduced the expression testing framework
  • clean up the typedefs (AVEC, AVAR types, etc)

Current Version:

v3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions