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

Write Tests #13

Open
knothed opened this issue Sep 16, 2019 · 1 comment
Open

Write Tests #13

knothed opened this issue Sep 16, 2019 · 1 comment

Comments

@knothed
Copy link
Member

knothed commented Sep 16, 2019

Write tests for the following libraries:

  • Geometry. Testing includes the various Shape.contains, Shape.distance(to:), Line.distance(to:) and Line.intersection(with:) methods. PolarCoordinates should also be tested.
  • ImageAnalysisKit. All image-unspecific algorithms like SmallestCircle, ConnectedChunks etc. should be tested. This also includes PixelPaths. Image-specific algorithms like EdgeDetection, RayShooter or Image.follow(path:...) should also be tested by creating testing images, for example via BitmapCanvas.
  • (Optional: GameKit. Trackers could be tested by providing example data.)
  • (Optional: MacTestingTools. It would be nice-to-have to test BitmapCanvas by creating example bitmaps and comparing them with expected outputs.)

Structure:

Because tests are library-specific, it would be best to create a "Tests" directory inside each tested library (at the same level where "Sources" is).

knothed added a commit that referenced this issue Sep 16, 2019
Testing is addressed in #13 and will be implemented later (and not in the mrflap branch).
knothed added a commit that referenced this issue Sep 16, 2019
Testing is addressed in #13 and will be implemented later (and not in the mrflap branch).
knothed added a commit that referenced this issue Sep 20, 2019
From the switch-ULO-with-LLO-commit, this line was wrongly changed (and this was not noticed until now). We definitely need tests! (#13)
@knothed
Copy link
Member Author

knothed commented Sep 28, 2019

Also, some things of ImageAnalysisKit were not used and not really tested until now. For example, special cases of EdgeDetector, e.g. using the inverse flag were not tested, so this should be done ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant