> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/ios/appendix/testing-system/xctest/xctassertequal.md).

# XCTAssertEqual (==)

{% hint style="info" %}
**XCTAssertEqual** works with types conforming to <mark style="color:red;">**Equatable**</mark>.
{% endhint %}

{% tabs %}
{% tab title="code" %}

```swift
func testThis() { 
    XCTAssertEqual(myString(3), "abc") 
}
```

{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
