# std.assert

Assertion helpers for tests and runtime checks.

```tea
use assert from "std.assert"
```

Examples may be fragments requiring the module import or additional setup.

## std.assert.ok

```tea
pub def ok(value)
```

Asserts that a value is truthy.

```tea
ok(1 + 1 == 2)
ok(x > 0)
```

## std.assert.eq

```tea
pub def eq(left, right)
```

Asserts that two values are equal.

```tea
eq(1 + 1, 2)
eq("hello", "hello")
```

## std.assert.ne

```tea
pub def ne(left, right)
```

Asserts that two values are not equal.

```tea
ne(1, 2)
ne("hello", "world")
```

## std.assert.snapshot

```tea
pub def snapshot(name, value, path)
```

Asserts that a value matches a saved snapshot.

```tea
snapshot("test_name", result)
snapshot("test_name", result, "custom/path")
```
