Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common String operations #13

Merged
merged 5 commits into from
Dec 6, 2016
Merged

Common String operations #13

merged 5 commits into from
Dec 6, 2016

Conversation

MarkusAmshove
Copy link
Owner

@MarkusAmshove MarkusAmshove commented Dec 6, 2016

According to #12

  • shouldStartWith
  • shouldNotStartWith
  • shouldEndWith
  • shouldNotEndWith
  • shouldContain
  • shouldNotContain
  • shouldMatch
  • shouldNotMatch

@MarkusAmshove
Copy link
Owner Author

MarkusAmshove commented Dec 6, 2016

Hi @goreRatzete ,

does this fit your needs?

(taken from the unittests. Backtick methods are also included)

// Regex and direct String pattern supported

"abc".shouldNotMatch("\\d+")
"1234".shouldMatch( Regex("\\d+"))
"Hello".shouldContain("ll")
"Hello".shouldNotContain("bye")
"Hello".shouldStartWith("He")
"Bye".shouldNotStartWith("Asd")
"Hello".shouldEndWith("llo")
"Bye".shouldNotEndWith("Asd")

@AndreasVolkmann
Copy link
Collaborator

Looking good, thank you!

@MarkusAmshove MarkusAmshove merged commit 02d34ab into master Dec 6, 2016
@MarkusAmshove MarkusAmshove deleted the stringasserts branch February 16, 2017 16:46
@MarkusAmshove MarkusAmshove mentioned this pull request Feb 19, 2017
16 tasks
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.

2 participants