AnthoLume/metadata/metadata_test.go

15 lines
264 B
Go
Raw Normal View History

2023-10-24 00:18:16 +00:00
package metadata
import (
"testing"
)
func TestGetWordCount(t *testing.T) {
var want int64 = 30477
wordCount, err := countEPUBWords("./_test_files/alice.epub")
if wordCount != want {
t.Fatalf(`Expected: %v, Got: %v, Error: %v`, want, wordCount, err)
}
}