Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.33 KB | None | 0 0
  1. func TestGetFiles(t *testing.T) {
  2.     dirPath := "/home/xa0s/Downloads/Movies/The_Boys/Season_1"
  3.     files, err := getFiles(dirPath)
  4.     if err != nil {
  5.         t.Fatal(err)
  6.     }
  7.  
  8.     expectedFilesCount := 8
  9.     if len(files) != expectedFilesCount {
  10.         t.Errorf("Incorrect number of files. Expected %d, got: %d", expectedFilesCount, len(files))
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement