diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-09-12 08:26:23 -0700 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-09-27 20:21:52 -0700 |
commit | 5806ee385adf8f8b4c9181243d8c4a6152942acd (patch) | |
tree | 9457ff9322526d56a26f2789ef66ad091539a4d1 /generated_tests/genclbuiltins.py | |
parent | 82ab98fc6b0a6f77aa13c1d75b3f8c51f99a5dcb (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.py | 2 |
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') |