Skip to content

Commit

Permalink
add TestSize
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Sep 25, 2024
1 parent 60ba2af commit 78695ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions filei_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,16 @@ func TestFiles(t *testing.T) {
t.Fatal("Files() error data must have 7 files")
}
}

func TestSize(t *testing.T) {
filePath := "testdata/text.txt"

size, err := Size(filePath)
if err != nil {
t.Fatalf("Size() error = %v", err)
}

if size != 13 {
t.Fatal("Size() error data must have 13 files")
}
}

0 comments on commit 78695ae

Please # to comment.