]> git.ipfire.org Git - thirdparty/jinja.git/commit
Add more strict type tests 824/head
authorDag Wieers <dag@wieers.com>
Sat, 17 Mar 2018 03:00:11 +0000 (04:00 +0100)
committerDavid Lord <davidism@gmail.com>
Thu, 10 Oct 2019 03:02:28 +0000 (20:02 -0700)
commit9bd3cb22c13b7c52550134f3ce7642a9f363fa05
tree1d7105e43b445c00b0742780ab777fd11e9065ce
parent9aa8296781e885e06417c401cb5a8f1b9fee7f9c
Add more strict type tests

This PR adds a few more type-related tests.

- boolean
    Testing of an object is a boolean required 2 tests.

- false
    Make this similar to testing none value

- true
    Make this similar to testing none value

- integer
    The existing 'number' test does not make a distinction between
    integer, float or even booleans

- float
    The existing 'number' test does not make a distinction between
    integer, float or even booleans
CHANGES.rst
jinja2/tests.py
tests/test_tests.py