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

贡献者指南