---
title: "assertWidthIsNotEqualTo"
description: "Asserts that the layout of this node has width that is NOT equal to expectedWidth."
type: "function"
lastmod: "2026-06-18T10:32:52.433279Z"
---
## API Reference

### assertWidthIsNotEqualTo

> Source set: Android

```kotlin
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertWidthIsNotEqualTo(
    expectedWidth: Dp
): SubspaceSemanticsNodeInteraction
```

Asserts that the layout of this node has width that is NOT equal to `expectedWidth`.

#### Parameters

| | |
| --- | --- |
| expectedWidth | The width to assert. |
