blob: a8a927e44b8f657aaaabdb1a4f82713b2d741719 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package lib
import (
"testing"
)
func TestFileIsSingleLicense(t *testing.T) {
name := "LICENSE-THIRD-PARTY"
singleLicenseFiles := []string{"LICENSE", "README"}
if !isSingleLicenseFile(name, singleLicenseFiles) {
t.Errorf("%v: %v is not a single license file", t.Name(), name)
}
}