Skip to content

Commit

Permalink
Modify post-local-greater-than-post to be unsatisfiable (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Mar 15, 2024
1 parent cc53f35 commit cbb60b2
Showing 1 changed file with 12 additions and 35 deletions.
47 changes: 12 additions & 35 deletions scenarios/post.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"name": "post-simple",
"description": "A simple version constraint should not match a post-release version.",
"root": {
"requires": [
"a==1.2.3"
]
"requires": ["a==1.2.3"]
},
"packages": {
"a": {
Expand All @@ -22,9 +20,7 @@
"name": "post-greater-than-or-equal",
"description": "A greater-than-or-equal version constraint should match a post-release version.",
"root": {
"requires": [
"a>=1.2.3"
]
"requires": ["a>=1.2.3"]
},
"packages": {
"a": {
Expand All @@ -45,9 +41,7 @@
"name": "post-greater-than",
"description": "A greater-than version constraint should not match a post-release version.",
"root": {
"requires": [
"a>1.2.3"
]
"requires": ["a>1.2.3"]
},
"packages": {
"a": {
Expand All @@ -64,9 +58,7 @@
"name": "post-greater-than-post",
"description": "A greater-than version constraint should match a post-release version if the constraint is itself a post-release version.",
"root": {
"requires": [
"a>1.2.3.post0"
]
"requires": ["a>1.2.3.post0"]
},
"packages": {
"a": {
Expand All @@ -88,9 +80,7 @@
"name": "post-greater-than-or-equal-post",
"description": "A greater-than-or-equal version constraint should match a post-release version if the constraint is itself a post-release version.",
"root": {
"requires": [
"a>=1.2.3.post0"
]
"requires": ["a>=1.2.3.post0"]
},
"packages": {
"a": {
Expand All @@ -112,9 +102,7 @@
"name": "post-less-than-or-equal",
"description": "A less-than-or-equal version constraint should not match a post-release version.",
"root": {
"requires": [
"a<=1.2.3"
]
"requires": ["a<=1.2.3"]
},
"packages": {
"a": {
Expand All @@ -131,9 +119,7 @@
"name": "post-less-than",
"description": "A less-than version constraint should not match a post-release version.",
"root": {
"requires": [
"a<1.2.3"
]
"requires": ["a<1.2.3"]
},
"packages": {
"a": {
Expand All @@ -150,9 +136,7 @@
"name": "post-local-greater-than",
"description": "A greater-than version constraint should not match a post-release version with a local version identifier.",
"root": {
"requires": [
"a>1.2.3"
]
"requires": ["a>1.2.3"]
},
"packages": {
"a": {
Expand All @@ -170,25 +154,18 @@
"name": "post-local-greater-than-post",
"description": "A greater-than version constraint should not match a post-release version with a local version identifier.",
"root": {
"requires": [
"a>1.2.3.post0"
]
"requires": ["a>1.2.3.post1"]
},
"packages": {
"a": {
"versions": {
"1.2.3.post0": {},
"1.2.3.post0+local": {},
"1.2.3.post1": {}
"1.2.3.post1": {},
"1.2.3.post1+local": {}
}
}
},
"expected": {
"satisfiable": true,
"packages": {
"a": "1.2.3.post1"
},
"explanation": "The version '1.2.3.post1' satisfies the constraint '>1.2.3.post0'."
"satisfiable": false
}
}
]

0 comments on commit cbb60b2

Please sign in to comment.