Sha256: 2042f9c1b186586dd98e7743adb6f06deb20bce4c19fe810710ee01616a32116
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
#include "clar.h" #include "clar_test.h" #include <stdio.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)); 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)); cl_assert_equal_s(fixture_mml, result); }
Version data entries
3 entries across 3 versions & 1 rubygems