I expect text.parsedSentences should contain all sentences. let me explain the problem with code :)
place it in parse/tokenizer_test.go file
func TestTokenizeText(t *testing.T) {
rule := NewRule()
text := TokenizeText("Hi!!!", rule)
assert.Equal(t, "Hi!", text.parsedSentences[0].original)
assert.Equal(t, "!", text.parsedSentences[1].original)
assert.Equal(t, "!", text.parsedSentences[2].original)
}
I expect this test should be passed, but apparently, it is not!
I expect text.parsedSentences should contain all sentences. let me explain the problem with code :)
place it in parse/tokenizer_test.go file
I expect this test should be passed, but apparently, it is not!