Title: Missing unit tests in `arcade.math` · Issue #2785 · pythonarcade/arcade · GitHub
Open Graph Title: Missing unit tests in `arcade.math` · Issue #2785 · pythonarcade/arcade
X Title: Missing unit tests in `arcade.math` · Issue #2785 · pythonarcade/arcade
Description: 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...
Open Graph Description: 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 ra...
X Description: 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 ra...
Opengraph URL: https://github.com/pythonarcade/arcade/issues/2785
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing unit tests in `arcade.math`","articleBody":"Most of the methods in `arcade.math` are missing unit tests.\n\nI also suspect many other functions in arcade are missing unit tests.\n\n`arcade.math` function tests:\n- [ ] clamp\n- [x] lerp\n- [x] lerp_2d\n- [x] lerp_3d\n- [x] lerp_angle\n- [ ] rand_in_rect\n- [ ] rand_in_circle\n- [ ] rand_on_circle\n- [ ] rand_on_line\n- [ ] rand_angle_360_deg\n- [ ] rand_angle_spread_deg\n- [ ] rand_vec_spread_deg\n- [ ] rand_vec_magnitude\n- [ ] get_distance\n- [ ] rotate_point\n- [ ] get_angle_degrees\n- [ ] get_angle_radians\n- [ ] quaternion_rotation","author":{"url":"https://github.com/DragonMoffon","@type":"Person","name":"DragonMoffon"},"datePublished":"2025-10-15T20:57:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2785/arcade/issues/2785"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c7dd7fa9-6f9f-93a6-3016-4252cea1b686 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E18E:1327C8:2AC58EB:3BB37EC:69692708 |
| html-safe-nonce | 27cd6aed361b58252f23f3ba79e43c3f3264268d32a2e28d8390ae49a4e2a80c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMThFOjEzMjdDODoyQUM1OEVCOjNCQjM3RUM6Njk2OTI3MDgiLCJ2aXNpdG9yX2lkIjoiNzU1MzAwMzk4MDk3OTc3NTI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e817f0f14b6cb4702f4b170d1764d2d3e67908fd0fede88d3f3deca7abbe1f1a |
| hovercard-subject-tag | issue:3519556101 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonarcade/arcade/2785/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6e4063005bfd48e8a2274103f2b8c41cab680369351929beb7c991fd5394a43/pythonarcade/arcade/issues/2785 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6e4063005bfd48e8a2274103f2b8c41cab680369351929beb7c991fd5394a43/pythonarcade/arcade/issues/2785 |
| og:image:alt | 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 ra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DragonMoffon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonarcade/arcade git https://github.com/pythonarcade/arcade.git |
| octolytics-dimension-user_id | 39569439 |
| octolytics-dimension-user_login | pythonarcade |
| octolytics-dimension-repository_id | 49003082 |
| octolytics-dimension-repository_nwo | pythonarcade/arcade |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49003082 |
| octolytics-dimension-repository_network_root_nwo | pythonarcade/arcade |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width