1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

semver: add a Version.str() method with unit tests (#12779)

This commit is contained in:
Subhomoy Haldar
2021-12-10 00:55:55 +05:30
committed by GitHub
parent 8f9f681e81
commit 4c95127cbc
2 changed files with 11 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ fn test_from() {
assert ver.patch == item.patch
assert ver.metadata == item.metadata
assert ver.prerelease == item.prerelease
assert ver.str() == item.raw
}
for ver in invalid_versions_to_test {
semver.from(ver) or {