|
GrafX2 2.9.3227
The ultimate 256-color painting program
|
Unit tests. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "tests.h"#include "../struct.h"#include "../oldies.h"#include "../packbits.h"#include "../io.h"#include "../gfx2log.h"
Include dependency graph for tests.c:Functions | |
| unsigned int | MOTO_MAP_pack (byte *packed, const byte *unpacked, unsigned int unpacked_len) |
| Pack a stream of byte in the format used by Thomson MO/TO MAP files. More... | |
| int | Test_MOTO_MAP_pack (char *errmsg) |
| Tests for MOTO_MAP_pack() More... | |
| int | Test_CPC_compare_colors (char *errmsg) |
| Test for Test_CPC_compare_colors() More... | |
| int | Test_Packbits (char *errmsg) |
| Tests for the packbits compression used in IFF ILBM, etc. More... | |
Unit tests.
Pack a stream of byte in the format used by Thomson MO/TO MAP files.
References GFX2_DEBUG, GFX2_ERROR, GFX2_Log(), and GFX2_malloc.
Referenced by Save_MOTO(), and Test_MOTO_MAP_pack().
| int Test_MOTO_MAP_pack | ( | char * | errmsg | ) |
Tests for MOTO_MAP_pack()
References ERRMSG_LENGTH, GFX2_DEBUG, GFX2_Log(), MOTO_MAP_pack(), NULL, and tests.
| int Test_CPC_compare_colors | ( | char * | errmsg | ) |
Test for Test_CPC_compare_colors()
References T_Components::B, CPC_compare_colors(), ERRMSG_LENGTH, T_Components::G, and T_Components::R.
| int Test_Packbits | ( | char * | errmsg | ) |
Tests for the packbits compression used in IFF ILBM, etc.
see http://fileformats.archiveteam.org/wiki/PackBits
References ERRMSG_LENGTH, GFX2_DEBUG, GFX2_ERROR, GFX2_Log(), GFX2_LogHexDump(), NULL, PackBits_pack_add(), PackBits_pack_flush(), PackBits_pack_init(), PackBits_unpack_from_file(), PACKBITS_UNPACK_OK, PATH_SEPARATOR, tests, and tmpdir.