---
title: "ArgumentMatcher.hasSuffix(argumentName:suffix:)"
framework: evaluations
role: symbol
role_heading: Case
path: "evaluations/argumentmatcher/hassuffix(argumentname:suffix:)"
---

# ArgumentMatcher.hasSuffix(argumentName:suffix:)

A value that indicates that the argument must be present and its string value must end with the specified suffix.

## Declaration

```swift
case hasSuffix(argumentName: String, suffix: String)
```

## See Also

### String matching

- [ArgumentMatcher.pattern(argumentName:regex:)](evaluations/argumentmatcher/pattern(argumentname:regex:).md)
- [ArgumentMatcher.contains(argumentName:substring:)](evaluations/argumentmatcher/contains(argumentname:substring:).md)
- [ArgumentMatcher.hasPrefix(argumentName:prefix:)](evaluations/argumentmatcher/hasprefix(argumentname:prefix:).md)
