Creates a new instance of StringMatching asymmetric matcher.
Pattern that expected string should match.
If true, matches if the received string does not match the expected pattern.
Symbol to identify asymmetric matcher.
ProtectedinverseIf true, the matcher will check for non-matching values.
ProtectedsampleThe sample value to match against.
Checks if the value matches.
The value to test.
true if the value matches, otherwise false.
Returns the expected type of the asymmetric matcher.
The expected type of the asymmetric matcher.
ProtectedgetReturns the context for the asymmetric matcher.
The context for the asymmetric matcher.
OptionaltoReturns a string representation of the asymmetric matcher for use in error messages.
A string representation of the asymmetric matcher for error messages.
Returns a string representation of the asymmetric matcher.
A string representation of the asymmetric matcher.
Assymmetric matcher that matches a received string that in turn matches the expected pattern. Use it inside expect(value).toEqual(expected) to perform pattern matching.
Usage