diff options
Diffstat (limited to 'builder/builder2v1/build_package_test.go')
-rw-r--r-- | builder/builder2v1/build_package_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/builder/builder2v1/build_package_test.go b/builder/builder2v1/build_package_test.go index 3ecd1dc..7128834 100644 --- a/builder/builder2v1/build_package_test.go +++ b/builder/builder2v1/build_package_test.go @@ -83,8 +83,12 @@ func TestBuilder2_1CanBuildPackageSection(t *testing.T) { if fileEmpty.LicenseConcluded != "NOASSERTION" { t.Errorf("expected %v, got %v", "NOASSERTION", fileEmpty.LicenseConcluded) } - if len(fileEmpty.LicenseInfoInFile) != 0 { - t.Errorf("expected %v, got %v", 0, len(fileEmpty.LicenseInfoInFile)) + if len(fileEmpty.LicenseInfoInFile) != 1 { + t.Errorf("expected %v, got %v", 1, len(fileEmpty.LicenseInfoInFile)) + } else { + if fileEmpty.LicenseInfoInFile[0] != "NOASSERTION" { + t.Errorf("expected %v, got %v", "NOASSERTION", fileEmpty.LicenseInfoInFile[0]) + } } if fileEmpty.FileCopyrightText != "NOASSERTION" { t.Errorf("expected %v, got %v", "NOASSERTION", fileEmpty.FileCopyrightText) |