vlang/vsl

test: add unit tests for gm (geometry) module

Aperta

#319 aperta il 14 lug 2026

 (0 commenti) (0 reazioni) (0 assegnatari)V (49 fork)auto 404
Hacktoberfestenhancementgood first issue

Metriche repository

Star
 (400 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor