diff --git a/README.md b/README.md index 4b0d3e6..af845f1 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ back to the pack level comparison (see tilde below). For example, * `1.2.x` is equivalent to `>= 1.2.0, < 1.3.0` * `>= 1.2.x` is equivalent to `>= 1.2.0` -* `<= 2.x` is equivalent to `<= 3` +* `<= 2.x` is equivalent to `< 3` * `*` is equivalent to `>= 0.0.0` ## Tilde Range Comparisons (Patch) diff --git a/constraints_test.go b/constraints_test.go index fed9329..ab78d63 100644 --- a/constraints_test.go +++ b/constraints_test.go @@ -188,7 +188,7 @@ func TestConstraintsCheck(t *testing.T) { {"<1.1", "1.1.0", false}, {"<1.1", "1.1.1", false}, {"<1.x", "1.1.1", true}, - {"<1.x", "2.1.1", false}, + {"<1.x", "2.0.0", false}, {"<1.1.x", "1.2.1", false}, {"<1.1.x", "1.1.500", true}, {"<1.2.x", "1.1.1", true}, @@ -201,7 +201,7 @@ func TestConstraintsCheck(t *testing.T) { {"<=1.1-a", "0.1.0-alpha", true}, {"<=1.1", "1.1.0", true}, {"<=1.x", "1.1.0", true}, - {"<=2.x", "3.1.0", false}, + {"<=2.x", "3.0.0", false}, {"<=1.1", "1.1.1", false}, {"<=1.1.x", "1.2.500", false}, {">1.1, <2", "1.1.1", true},