vlang/vsl

test: add unit test suite for quaternion module

开放

#318 创建于 2026年7月14日

 (0 条评论) (0 个反应) (0 位负责人)V (49 个派生)auto 404
Hacktoberfestenhancementgood first issue

仓库指标

星标
 (400 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

quaternion/ has zero _test.v files despite a rich README documenting SLERP, NLERP, 3D rotations, interpolation, exponentiation, and parity operations.

Task

Add tests under quaternion/:

  1. quaternion/rotation_test.v — verify rotation matrices, axis-angle conversions, to/from matrix
  2. quaternion/interpolation_test.v — SLERP, NLERP with known reference values
  3. quaternion/basic_test.v — arithmetic, identity, norm, normalize

Verification

  • cd ~/.vmodules/vlang && v test vsl/quaternion
  • All operations tested with tolerance 1e-6

贡献者指南