-- Min and max length get included
{% test length_between(model, column_name, min_length, max_length) %}

    with
        invalid_length as (
            select {{ column_name }}
            from {{ model }}
            where
                length({{ column_name }}) not between {{ min_length }}
                and {{ max_length }}
        )

    select *
    from invalid_length

{% endtest %}
