update tests to match pre-release constraint rules

This commit is contained in:
James Bardin 2018-03-28 14:20:02 -04:00 committed by Martin Atkins
parent 398a6ef31a
commit 0a6938e90a
1 changed files with 11 additions and 1 deletions

View File

@ -30,11 +30,21 @@ func TestVersionSet(t *testing.T) {
{ {
">=1.0.0", ">=1.0.0",
"1.1.0-beta1", "1.1.0-beta1",
false,
},
{
">=1.0.0",
"1.1.0",
true,
},
{
"~>1.1.0-a",
"1.1.0-beta1",
true, true,
}, },
{ {
"~>1.1.0", "~>1.1.0",
"1.1.2-beta1", "1.1.2",
true, true,
}, },
{ {