diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/gd/gd_versiontest.c')
-rw-r--r-- | Build/source/libs/gd/libgd-src/tests/gd/gd_versiontest.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/gd/gd_versiontest.c b/Build/source/libs/gd/libgd-src/tests/gd/gd_versiontest.c new file mode 100644 index 00000000000..1aa1a67b3d9 --- /dev/null +++ b/Build/source/libs/gd/libgd-src/tests/gd/gd_versiontest.c @@ -0,0 +1,21 @@ +#include <string.h> + +#include "gd.h" +#include "gdtest.h" + + +int main() +{ + char buffer[100]; + + gdTestAssert(GD_MAJOR_VERSION == gdMajorVersion()); + gdTestAssert(GD_MINOR_VERSION == gdMinorVersion()); + gdTestAssert(GD_RELEASE_VERSION == gdReleaseVersion()); + gdTestAssert(strcmp(GD_EXTRA_VERSION, gdExtraVersion()) == 0); + + sprintf(buffer, "%d.%d.%d%s", GD_MAJOR_VERSION, GD_MINOR_VERSION, + GD_RELEASE_VERSION, GD_EXTRA_VERSION); + gdTestAssert(strcmp(GD_VERSION_STRING, gdVersionString()) == 0); + + return gdNumFailures(); +} |