> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/a/assertions.md).

# Assertions

```ruby
var num = pick(0..100);
assert_eq(num, 42);         # dies when "num" is not 42
```

#### Output:

```
assert_eq: 26 == 42 is false at assertions.sf line 2.
```
