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

貢獻者指南