Test if the value matches the predicate. Throws an ArgumentError if the test fails.
ArgumentError
Value to test.
Optional
Override the label which should be used in error messages.
Test if the value matches the predicate. Throws an
ArgumentError
if the test fails.