diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/gdimagecolor/basic.c')
-rw-r--r-- | Build/source/libs/gd/libgd-src/tests/gdimagecolor/basic.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimagecolor/basic.c b/Build/source/libs/gd/libgd-src/tests/gdimagecolor/basic.c new file mode 100644 index 00000000000..86c0aff10be --- /dev/null +++ b/Build/source/libs/gd/libgd-src/tests/gdimagecolor/basic.c @@ -0,0 +1,27 @@ +/** + * Basic test for gdImageColor() + */ + +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + FILE *fp; + char *path; + + fp = gdTestFileOpen2("gdimagecolor", "basic.png"); + im = gdImageCreateFromPng(fp); + fclose(fp); + + gdImageColor(im, 127, -127, -127, 0); + + path = gdTestFilePath2("gdimagecolor", "basic_exp.png"); + gdAssertImageEqualsToFile(path, im); + gdFree(path); + + gdImageDestroy(im); + + return gdNumFailures(); +} |