Sha256: 819015117f9f6d5e0fb43bd5664bc4ff8f4d40aba7f86b91c75afa40758c0b48
Contents?: true
Size: 1022 Bytes
Versions: 17
Compression:
Stored size: 1022 Bytes
Contents
#include "clar.h" #include "clar_test.h" #include <stdio.h> #include <string.h> static char *fixture_tex; static char *fixture_mml; static char *result; void test_functions__initialize(void) { global_test_counter++; } void test_functions__cleanup(void) { if (fixture_tex != NULL) { free(fixture_tex); } if (fixture_mml != NULL) { free(fixture_mml); } if (result != NULL) { free(result); } } void test_functions__max_limits(void) { fixture_tex = read_fixture_tex("functions/max_limits.txt"); fixture_mml = read_fixture_mml("functions/max_limits.html"); result = mtex2MML_parse(fixture_tex, strlen(fixture_tex), MTEX2MML_DELIMITER_DEFAULT); cl_assert_equal_s(fixture_mml, result); } void test_functions__min_limits(void) { fixture_tex = read_fixture_tex("functions/min_limits.txt"); fixture_mml = read_fixture_mml("functions/min_limits.html"); result = mtex2MML_parse(fixture_tex, strlen(fixture_tex), MTEX2MML_DELIMITER_DEFAULT); cl_assert_equal_s(fixture_mml, result); }
Version data entries
17 entries across 17 versions & 1 rubygems