summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDenis Steckelmacher <steckdenis@yahoo.fr>2011-10-24 19:13:10 +0200
committerDenis Steckelmacher <steckdenis@yahoo.fr>2011-10-24 19:13:10 +0200
commit750754c5e57953b0231cad56a392461b6e92c7ff (patch)
treecda895307fa957d068ddfe83be32fca0ff6edc99 /tests
parent8a6e965c8a6d3a7bbef277191e7ca698a5b247f8 (diff)
New exp() function
exp2() is currently broken.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_builtins.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_builtins.cpp b/tests/test_builtins.cpp
index 80852a9..1394a27 100644
--- a/tests/test_builtins.cpp
+++ b/tests/test_builtins.cpp
@@ -109,6 +109,7 @@ const char builtins_source[] =
" if (cos(0.0f) != 1.0f) { *rs = 2; return; }\n"
" if (copysign(1.0f, -0.5f) != -1.0f) { *rs = 3; return; }\n"
" if (copysign(f2, f2b).x != -1.0f) { *rs = 4; return; }\n"
+ " if (exp2(3.0f) != 8.0f) { *rs = 5; return; }\n"
"}\n";
enum TestCaseKind
@@ -392,6 +393,9 @@ START_TEST (test_builtins)
case 4:
errstr = "float2 copysign(float2) doesn't behave correctly";
break;
+ case 5:
+ errstr = "exp2() doesn't behave correctly";
+ break;
default:
errstr = default_error(rs);
}