summaryrefslogtreecommitdiff
path: root/generated_tests/genclbuiltins.py
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-09-12 08:26:23 -0700
committerTom Stellard <thomas.stellard@amd.com>2013-09-27 20:21:52 -0700
commit5806ee385adf8f8b4c9181243d8c4a6152942acd (patch)
tree9457ff9322526d56a26f2789ef66ad091539a4d1 /generated_tests/genclbuiltins.py
parent82ab98fc6b0a6f77aa13c1d75b3f8c51f99a5dcb (diff)
cl: Add a python script for generating tests for math builtins
This includes a test for the nextafter builtin.
Diffstat (limited to 'generated_tests/genclbuiltins.py')
-rw-r--r--generated_tests/genclbuiltins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/genclbuiltins.py b/generated_tests/genclbuiltins.py
index 29dfe3972..721191e3a 100644
--- a/generated_tests/genclbuiltins.py
+++ b/generated_tests/genclbuiltins.py
@@ -252,7 +252,7 @@ def getValue(type, val):
getValue(type, val[3]), getValue(type, val[4]))
# At this point, we should have been passed a number
- if (isinstance(val, (int, long))):
+ if (isinstance(val, (int, long, float))):
return val
print('Invalid value '+repr(val)+' encountered in getValue\n')