diff options
Diffstat (limited to 'lib/ansible/plugins/test/mathstuff.py')
-rw-r--r-- | lib/ansible/plugins/test/mathstuff.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ansible/plugins/test/mathstuff.py b/lib/ansible/plugins/test/mathstuff.py index c736bbe6b6..0a64f52674 100644 --- a/lib/ansible/plugins/test/mathstuff.py +++ b/lib/ansible/plugins/test/mathstuff.py @@ -20,18 +20,22 @@ __metaclass__ = type import math + def issubset(a, b): return set(a) <= set(b) + def issuperset(a, b): return set(a) >= set(b) + def isnotanumber(x): try: return math.isnan(x) except TypeError: return False + class TestModule: ''' Ansible math jinja2 tests ''' |