Skip to content

Write Tests #13

@knothed

Description

@knothed

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).

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