Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/api-tests/ViGetTests.cs
diff options
context:
space:
mode:
authorLeitwolf112026-11-01 16:09:24 +0300
committerLeitwolf112026-11-01 16:09:24 +0300
commit02662c79c1f2bcda974da9e1b0ed8c5ac92ee127 (patch)
tree4ee85eac098e19e0fbeda39353d9401e7888a5ba /apps/api-tests/ViGetTests.cs
parent1d99f81ec96e05337e474dc84555def3a1bcf954 (diff)
downloadprogmaweb-feature/four-part-versions.tar.gz
Accept plugin versions of four numbersfeature/four-part-versions
Progmasoft's releases move to four numbers, and the plugins publish here.
Diffstat (limited to 'apps/api-tests/ViGetTests.cs')
-rw-r--r--apps/api-tests/ViGetTests.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/api-tests/ViGetTests.cs b/apps/api-tests/ViGetTests.cs
index 603ef2f..0eb94b8 100644
--- a/apps/api-tests/ViGetTests.cs
+++ b/apps/api-tests/ViGetTests.cs
@@ -59,8 +59,11 @@ public sealed class ViGetTests : IDisposable
Assert.Equal("The JAR has no META-INF/services/com.progmasoft.api.tazel.dsl.plugin.ProjectPlugin.",
TazelPluginDescriptor.TryRead(Jar(service: false), out _));
- Assert.Equal("The descriptor needs an exact semantic version.",
+ Assert.Equal("The descriptor needs an exact version of three or four numbers.",
TazelPluginDescriptor.TryRead(Jar(version: "1.0"), out _));
+ Assert.Equal("The descriptor needs an exact version of three or four numbers.",
+ TazelPluginDescriptor.TryRead(Jar(version: "1.2.3.4.5"), out _));
+ Assert.True(TazelPluginDescriptor.IsVersion("0.1.1.1"));
Assert.Equal("The descriptor needs a name that is one identifier.",
TazelPluginDescriptor.TryRead(Jar(name: "c-make"), out _));
Assert.Equal("The homepage of the descriptor is not an https address.",