Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Cees,
here a first PR introducing unit tests. Wanted to do more tests but didn't have time yet. So at least a first version until i have more time.
I investigated several unit test frameworks. Choice was limited by
Tested CMocka, CUnit and Check, found CMocka to be best (modern design, maintained, pretty output, easy and complete testing). If you'd prefer CUnit or Check i could easily switch to them.
The goal was to work on 'displaying satellite names' in rfplot which finally takes a little more work than expected and adding unit tests to the TLE loading code was a good start not to break anything.
Will work on this as soon as i have time and will also try to improve testing. Some parts will require more refactory to become testable.