mirror of
https://github.com/anchore/grype
synced 2024-11-15 00:37:08 +00:00
add test case for version parsing with embedded quotes
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
0a9408005f
commit
c5e16bb4a2
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,14 @@ func TestSplitFuzzyPhrase(t *testing.T) {
|
|||
version: "in<(b e t w e e n)>quotes<=||>=not!=",
|
||||
},
|
||||
},
|
||||
{
|
||||
// to cover a version that has quotes within it, but not necessarily surrounding the entire version
|
||||
phrase: ` >= inbet"ween)>quotes" with trailing words `,
|
||||
expected: &constraintUnit{
|
||||
rangeOperator: GTE,
|
||||
version: `inbet"ween)>quotes" with trailing words`,
|
||||
},
|
||||
},
|
||||
{
|
||||
phrase: `="something"`,
|
||||
expected: &constraintUnit{
|
||||
|
|
Loading…
Reference in a new issue