---
title: "assertHeightIsNotEqualTo"
description: "Asserts that the layout of this node has height that is NOT equal to expectedHeight."
type: "function"
lastmod: "2026-06-18T10:32:52.426891Z"
---
## API Reference

### assertHeightIsNotEqualTo

> Source set: Android

```kotlin
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertHeightIsNotEqualTo(
    expectedHeight: Dp
): SubspaceSemanticsNodeInteraction
```

Asserts that the layout of this node has height that is NOT equal to `expectedHeight`.

#### Parameters

| | |
| --- | --- |
| expectedHeight | The height to assert. |
