# `Otera.Tests`
[🔗](https://github.com/georgeguimaraes/otera/blob/v0.1.0/lib/otera/tests.ex#L1)

The builtin tests of Jinja2, such as `x is defined` or `x is divisibleby 3`, with their Python behavior.

The tests are `boolean`, `callable`, `defined`, `divisibleby`, `escaped`, `even`, `false`, `filter`, `float`, `in`, `integer`, `iterable`, `lower`, `mapping`, `none`, `number`, `odd`, `sameas`, `sequence`, `string`, `test`, `true`, `undefined` and `upper`, and the comparisons `eq` (`equalto`, `==`), `ne` (`!=`), `lt` (`lessthan`, `<`), `le` (`<=`), `gt` (`greaterthan`, `>`) and `ge` (`>=`).

# `builtin?`

```elixir
@spec builtin?(String.t()) :: boolean()
```

Returns true if `name` is a builtin test.

# `call`

```elixir
@spec call(String.t(), term(), list(), Otera.Dict.t(), map()) :: boolean()
```

Applies the builtin test `name` to `value`. `env` gives the custom filters and tests for the `filter` and `test` tests.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
