# assert/length
Assert the length of a collection or string. Used inside `deftest` blocks.
## Syntax
[assert/length $xs $n]
## Parameters
- `$xs` — collection or string to measure.
- `$n` — expected length (number).
## Examples
[assert/length @{1 2 3} 3]
[assert/length $name 5]
## Returns
`true` on success; raises a runtime error on failure.
## See Also
`assert/not-empty?`, `assert/eq`, `deftest`