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

### assertPositionIsEqualTo

> Source set: Android

```kotlin
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertPositionIsEqualTo(
    expectedX: Dp,
    expectedY: Dp,
    expectedZ: Dp,
): SubspaceSemanticsNodeInteraction
```

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

#### Parameters

| | |
| --- | --- |
| expectedX | The x position to assert. |
| expectedY | The y position to assert. |
| expectedZ | The z position to assert. |
