Skip to content

Fix: Add doctest and tests for clearcode coordinate helpers#862

Open
drawliin wants to merge 1 commit intoaboutcode-org:mainfrom
drawliin:test/add-cdutils-coordinate-coverage
Open

Fix: Add doctest and tests for clearcode coordinate helpers#862
drawliin wants to merge 1 commit intoaboutcode-org:mainfrom
drawliin:test/add-cdutils-coordinate-coverage

Conversation

@drawliin
Copy link
Copy Markdown

Closes #861

This adds the missing doctest requested in clearcode.cdutils.str2coord() and adds focused tests for str2coord() and coord2str().

The new coverage verifies:

  • parsing coordinates from a ClearlyDefined URL
  • parsing coordinates from a URN while ignoring extra trailing segments
  • preserving - for a missing namespace when converting coordinates back to string form

@drawliin drawliin force-pushed the test/add-cdutils-coordinate-coverage branch from d7f0857 to 37b22b7 Compare March 28, 2026 00:12
Signed-off-by: drawlin <itshoussameddine@gmail.com>
@drawliin drawliin force-pushed the test/add-cdutils-coordinate-coverage branch from 37b22b7 to 9b2a7dd Compare March 28, 2026 00:17
@drawliin drawliin changed the title Add doctest and tests for clearcode coordinate helpers Fix: Add doctest and tests for clearcode coordinate helpers Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add doctest and tests for clearcode coordinate helpers

1 participant