diff options
Diffstat (limited to 'internal/cvss/version_test.go')
-rw-r--r-- | internal/cvss/version_test.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/cvss/version_test.go b/internal/cvss/version_test.go deleted file mode 100644 index e010094..0000000 --- a/internal/cvss/version_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package cvss - -import "testing" - -func TestVersionString(t *testing.T) { - tests := []struct { - val Version - exp string - } { - { V20, "2.0" }, - { V30, "3.0" }, - { V31, "3.1" }, - { Version(255), "Version(255)" }, - } - - for _, test := range(tests) { - t.Run(test.val.String(), func(t *testing.T) { - got := test.val.String() - if got != test.exp { - t.Errorf("got: \"%s\", exp: \"%s\"", got, test.exp) - } - }) - } -} |