mirror of
https://github.com/anchore/syft
synced 2024-11-10 14:24:12 +00:00
75aed5f3ec
Fixes #460 Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
15 lines
343 B
Go
15 lines
343 B
Go
package spdxlicense
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestLicenceListIDs(t *testing.T) {
|
|
// do a sanity check on the generated data
|
|
assert.Equal(t, "0BSD", licenseIDs["0bsd"])
|
|
assert.Equal(t, "ZPL-2.1", licenseIDs["zpl-2.1"])
|
|
assert.Equal(t, "GPL-2.0", licenseIDs["gpl-2"])
|
|
assert.NotEmpty(t, Version)
|
|
}
|