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

Additional array test functionality and RegEx Matching #22

Closed
wants to merge 6 commits into from
Closed

Additional array test functionality and RegEx Matching #22

wants to merge 6 commits into from

Conversation

connerk
Copy link
Contributor

@connerk connerk commented Jun 26, 2018

ToBeIn() ToNotBeIn() (Syntactic Sugar.)
works inverse of ToContain() and ToNotContain(), checking if a value is (not) in an array instead of if an array contains a value.

Contains()
Now capable of accepting multi dimensional arrays arrays
Now capable of accepting arrays for both Actual and Expected arguments. i.e. see if all items in an array are found within another array.

ToMatchRegEx()
allows for Regular Expression matching

Expect() (CreateFailureMessage())
can now have fail message overridden with a more descriptive string

@connerk connerk changed the title Additional array test functionality Additional array test functionality and RegEx Matching Jun 26, 2018
@timhall timhall mentioned this pull request Aug 28, 2018
@timhall
Copy link
Member

timhall commented Aug 28, 2018

I wasn't able to merge this directly, but I included your Contains changes as .Includes Values, Value and Expect() as .Fail("Message") in #23. I will revisit the RegEx proposal later as I would really like to have it, but I want to maintain Mac compatibility with VBA-TDD/vba-test. It will most like start out behind a feature flag like #Const EnableIsMatch, but I need to think about the API more.

Thanks for the contribution!

@timhall timhall closed this Aug 28, 2018
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.

None yet

2 participants