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 20:16:35 +0300
committerLeitwolf112026-11-01 20:16:35 +0300
commite85e2b2359518f83354c09f9f4a101b7779e6e9c (patch)
tree866f72ee121f11b3abde3891e0605c1b327dcc12 /apps/api-tests/ViGetTests.cs
parent8323e428c021642aaf898bfdefe3b3f4f8f1824b (diff)
downloadprogmaweb-feature/five-part-versions.tar.gz
Accept plugin versions of up to five numbersfeature/five-part-versions
Tazel takes A.B.C, then .D, .E and -METADATA if needed, so the descriptor check follows it.
Diffstat (limited to 'apps/api-tests/ViGetTests.cs')
-rw-r--r--apps/api-tests/ViGetTests.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/api-tests/ViGetTests.cs b/apps/api-tests/ViGetTests.cs
index 0eb94b8..bcffd4e 100644
--- a/apps/api-tests/ViGetTests.cs
+++ b/apps/api-tests/ViGetTests.cs
@@ -59,11 +59,13 @@ 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 version of three or four numbers.",
+ Assert.Equal("The descriptor needs an exact version of three to five 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.Equal("The descriptor needs an exact version of three to five numbers.",
+ TazelPluginDescriptor.TryRead(Jar(version: "1.2.3.4.5.6"), out _));
Assert.True(TazelPluginDescriptor.IsVersion("0.1.1.1"));
+ Assert.True(TazelPluginDescriptor.IsVersion("0.1.1.1.1"));
+ Assert.True(TazelPluginDescriptor.IsVersion("0.1.1.1.1-build.2"));
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.",