---
title: "assertXPositionIsEqualTo"
description: "Asserts that the layout of this node has the x position that is equal to the given position."
type: "function"
lastmod: "2026-06-18T10:32:52.434909Z"
---
## API Reference

### assertXPositionIsEqualTo

> Source set: Android

```kotlin
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertXPositionIsEqualTo(
    expectedX: Dp
): SubspaceSemanticsNodeInteraction
```

Asserts that the layout of this node has the x position that is equal to the given position.

#### Parameters

| | |
| --- | --- |
| expectedX | The x position to assert. |
