1
#include "../libssts/SimpleTypeSystem.h"
2
#include "test_macros.h"
6
const schar * testdata = "Hello World!";
12
size_t testdata_size = strlen (testdata),
18
schar * hex = s_base_16_enc ((sbyte *) testdata, testdata_size, &out_size);
20
test_case (s_string_is_equal ("48656C6C6F20576F726C642100", hex), "The Base16 data has the expected value.");
22
hex_size = strlen (hex);
24
schar * ret = s_base_16_dec (hex, hex_size, &out2_size);
26
s_print ("Test data: %s, The output from the decoding: %s\n", testdata, ret);
28
test_case (s_string_is_equal (testdata, ret), "The string has the expected value");