shunit2 icon indicating copy to clipboard operation
shunit2 copied to clipboard

add assertStartsWith and assertEndsWith to complement assertContains

Open go2null opened this issue 6 years ago • 1 comments

Add assertStartsWith and assertEndsWith to complement assertContains ( #98 )

If there is interest in this, I can submit a PR.

Intent is to use POSIX Paramter Expansion (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02).

On that note, is there any reason why echo | grep was used for assertContains?

go2null avatar Sep 21 '19 16:09 go2null

This covers the example use case in #101

go2null avatar Sep 21 '19 16:09 go2null