Skip to content
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

Make unit tests from all examples #12

Open
s-martin opened this issue Jul 2, 2019 · 2 comments
Open

Make unit tests from all examples #12

s-martin opened this issue Jul 2, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@s-martin
Copy link
Owner

s-martin commented Jul 2, 2019

Examples 1, 4, 5, 7 (?) are already used also as unit tests.

Do this for all existing examples.

Restructure unit test files in a meaningful manner.

@s-martin
Copy link
Owner Author

s-martin commented Nov 4, 2019

Possible improvement:

Separate for each example the main method from the example, e.g. provide function objective and exampleXX, which should be placed in a .hpp file.

exampleXX should use seed and all command line options as input parameters and return ga.statistics() or something similar.

Therefore the implementation in exampleXX could be used both in the example executable (main in .C file) and in addition be used in a unit test with a static seed.

Currently the first examples used in unit tests duplicate the code, which is unfortunate. This should be reworked.

@s-martin s-martin pinned this issue Nov 4, 2019
This was referenced Nov 4, 2019
@s-martin
Copy link
Owner Author

s-martin commented Nov 7, 2019

Make unit tests from ex6 and ex8, so lists and trees are finally tested a bit.

Then merge this into the reworking list branch (#25) and finally continue on list refactoring, see #24

s-martin added a commit that referenced this issue Nov 8, 2019
@s-martin s-martin added the enhancement New feature or request label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant