forked from AcademySoftwareFoundation/openexr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend Iex test coverage (AcademySoftwareFoundation#1364)
* Add tests for throwErrnoExc And fixed bug in throwing ENOCSI Signed-off-by: Cary Phillips <cary@ilm.com> * testMathExc Signed-off-by: Cary Phillips <cary@ilm.com> * testMathExc Signed-off-by: Cary Phillips <cary@ilm.com> * typeinfo Signed-off-by: Cary Phillips <cary@ilm.com> * fix test2 Signed-off-by: Cary Phillips <cary@ilm.com> * test3 Signed-off-by: Cary Phillips <cary@ilm.com> --------- Signed-off-by: Cary Phillips <cary@ilm.com>
- Loading branch information
Showing
8 changed files
with
748 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#undef __THROW | ||
#include <math.h> | ||
#include <iostream> | ||
|
||
float | ||
divide (float x, float y) | ||
{ | ||
std::cout << x << " / " << y << std::endl; | ||
return x / y; | ||
} | ||
|
||
float | ||
root (float x) | ||
{ | ||
std::cout << "sqrt (" << x << ")" << std::endl; | ||
return sqrt (x); | ||
} | ||
|
||
float | ||
grow (float x, int y) | ||
{ | ||
std::cout << "grow (" << x << ", " << y << ")" << std::endl; | ||
|
||
for (int i = 0; i < y; i++) | ||
x = x * x; | ||
|
||
return x; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
float divide (float x, float y); | ||
float root (float x); | ||
float grow (float x, int y); | ||
|
Oops, something went wrong.