Add StringTitle

This commit is contained in:
George Suntres
2026-03-30 18:29:58 -04:00
parent 65eec3c3b1
commit d829099a45
9 changed files with 73 additions and 0 deletions

22
file_test.go Normal file
View File

@@ -0,0 +1,22 @@
package commons
import (
"testing"
"slices"
)
func TestFileDeepScan(t *testing.T) {
files := make([]string, 0)
FileDeepScan(".file", &files)
l := len(files)
if l != 2 {
t.Fatalf("Should have found %d files", l)
}
if !slices.Contains(files, ".file/dir1/file1.json") {
t.Fatal("Should have found file1.json")
}
}