mirror of
https://github.com/vbatts/sl-feeds.git
synced 2025-01-23 17:30:08 +00:00
15 lines
251 B
Go
15 lines
251 B
Go
|
package util
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestFind(t *testing.T) {
|
||
|
paths, err := FindFiles("../changelog", "ChangeLog.txt")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
|
||
|
if len(paths) != 1 {
|
||
|
t.Errorf("expected to find %d file, but found %d", 1, len(paths))
|
||
|
}
|
||
|
}
|