---
title: "equals(_:)"
framework: appintentstesting
role: symbol
role_heading: Type Method
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, tvOS 27.3+, visionOS 27.3+, watchOS 27.3+]
path: "appintentstesting/intentvalueexpectation/equals(_:)"
---

# equals(_:)

Creates an expectation that requires the value to be a string that equals a specified string.

## Declaration

```swift
static func equals(_ value: String) -> Self
```

## Parameters

- `value`: The string to compare the value to.

## Return Value

Return Value An expectation that compares a string value to value.

## Discussion

Discussion The comparison is exact and case-sensitive. A value that isn’t a string doesn’t satisfy the expectation.
