Skip to content

Missing unit tests in arcade.math #2785

Closed as not planned
Closed as not planned

Description

@DragonMoffon

Most of the methods in arcade.math are missing unit tests.

I also suspect many other functions in arcade are missing unit tests.

arcade.math function tests:

  • clamp
  • lerp
  • lerp_2d
  • lerp_3d
  • lerp_angle
  • rand_in_rect
  • rand_in_circle
  • rand_on_circle
  • rand_on_line
  • rand_angle_360_deg
  • rand_angle_spread_deg
  • rand_vec_spread_deg
  • rand_vec_magnitude
  • get_distance
  • rotate_point
  • get_angle_degrees
  • get_angle_radians
  • quaternion_rotation

Activity

  1. DragonMoffon commented on Oct 15, 2025

    @DragonMoffon
    CollaboratorAuthor

    Nearly every method has a test_function, but they are just smoke tests and do not test functionality.

  2. Pteris-211 commented on Nov 8, 2025

    @Pteris-211

    Hi, I'd like to work on it over the next few weeks. I'm new to the open source world, so if there's anything I need to pay particular attention to, please let me know.

  3. AidenHogan commented on Jun 20, 2026

    @AidenHogan

    Hello, I was drafting tests for this when I stumbled across #2812. It seems Arcade's math is currently being overhauled to mostly use Pyglet, and thus PRs for arcade.math are not being accepted right now. Perhaps this issue should be closed while that's in the work?

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

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