Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moljac committed Aug 21, 2024
1 parent d5e8c1a commit 295aae1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MavenNet.Tests/MavenVersioningTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ public class MavenVersioningTests
[InlineData("(,1.0],[1.2,)", "1.2", true)]
[InlineData("(,1.0],[1.2,)", "1.3", true)]
[InlineData("(,1.0],[1.2,)", "1.1", false)]
[InlineData("(,1.0],[2.2,)", "1.0.1.262e11d", false)]
[InlineData("(,0.8],[2.2,)", "0.11.1.647c3c2", false)]
[InlineData("(,0.8],[2.2,)", "0.11.1.3c786d2", false)]
[InlineData("(,0.8],[2.2,)", "0.10.1.2e8fe11", false)]
[InlineData("(,0.8],[2.2,)", "0.10.1.e92f734", false)]
[InlineData("(,0.8],[2.2,)", "0.10.1.d22d4de", false)]
[InlineData("(,0.8],[2.2,)", "0.9.3.545a756", false)]
[InlineData("(,0.8],[2.2,)", "0.9.3.a319893", false)]
public void Satisfy_Versions(string range, string version, bool satisfies)
{
var mvr = new MavenVersionRange(range);
Expand Down

0 comments on commit 295aae1

Please sign in to comment.