Open ye-luo opened 2 years ago
The issue is not so much fusing the functionality, but rewriting all the tests to use qmc_run_and_check_custom_scalar
. One important difference is qmc_run_and_check_custom_scalar
takes named arguments (by using cmake_parse_arguments
). This makes it much more flexible for expansion than qmc_run_and_check
(which uses positional arguments).
qmc_run_and_check_custom_scalar
will need to be extended to handle multiple series and scalar values before being a replacement for qmc_run_and_check
.
See the introduction of qmc_run_and_check_scalar
in #2741
Named arguments seem much more readable when there are like 10+ arguments.
Named/Tagged arguments is something python got right.
So should we:
qmc_run_and_check_custom_scalar
to something like qmc_system_test
qmc_system_test
to support missing qmc_run_and_check functionality.qmc_run_and_check.
i.e. all new system tests must be written with qmc_system_test
qmc_run_and_check
tests use qmc_system_test
qmc_run_and_check
Is your feature request related to a problem? Please describe. Keeping two similar functions are sub-optimal.
Describe the solution you'd like Fuse into one for both needs.