vlang/vsl

test: add unit tests for gm (geometry) module

開放

#319 建立於 2026年7月14日

 (0 則留言) (0 個反應) (0 位負責人)V (49 個分叉)auto 404
Hacktoberfestenhancementgood first issue

倉庫指標

星標
 (400 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

gm/basicgm.v and gm/bins.v have no test coverage. The README promises 6 example directories but automated testing is absent.

Task

Add gm/basicgm_test.v and gm/bins_test.v covering:

  • Point creation and distance computation
  • Bin creation, insertion, and spatial queries
  • Edge cases: empty bins, duplicate points

Verification

  • cd ~/.vmodules/vlang && v test vsl/gm

貢獻者指南