# 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 %}
