Skip to content

Comments

Test08 regex "dot fix"#2

Open
chillinPanda wants to merge 1 commit intoJosePaumard:masterfrom
chillinPanda:Test08_regex_trailing_dot
Open

Test08 regex "dot fix"#2
chillinPanda wants to merge 1 commit intoJosePaumard:masterfrom
chillinPanda:Test08_regex_trailing_dot

Conversation

@chillinPanda
Copy link

Using the provided regex to split words, there will be "thee." in the result list.

This is not a deal breaker for the counting exercise.

This assert fails with the provided regex:

assertThat(
        sonnet.stream().flatMap(pattern::splitAsStream)
).doesNotContain("thee.");

"thee." will be in the list. Not a deal breaker for the counting exercise. See:

assertThat(
        sonnet.stream().flatMap(pattern::splitAsStream)
).doesNotContain("thee.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant