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

### assertZPositionIsEqualTo

> Source set: Android

```kotlin
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertZPositionIsEqualTo(
    expectedZ: Dp
): SubspaceSemanticsNodeInteraction
```

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

#### Parameters

| | |
| --- | --- |
| expectedZ | The z position to assert. |
