Sha256: 83adc5eb6cd203a78870be0ccbe3501f7d6e547d7cfaf2eb53b8bd0b240da449

Contents?: true

Size: 1.07 KB

Versions: 22

Compression:

Stored size: 1.07 KB

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_cornercases__initialize(void)
{
  global_test_counter++;
}

void test_cornercases__cleanup(void)
{
  if (fixture_tex != NULL) {
    free(fixture_tex);
  }

  if (fixture_mml != NULL) {
    free(fixture_mml);
  }

  if (result != NULL) {
    free(result);
  }
}

void test_cornercases__broken_up_inline_env(void)
{
  fixture_tex = read_fixture_tex("cornercases/broken_up_inline_env.txt");
  fixture_mml = read_fixture_mml("cornercases/broken_up_inline_env.html");
  result = mtex2MML_parse(fixture_tex, strlen(fixture_tex), MTEX2MML_DELIMITER_DEFAULT);

  cl_assert_equal_s(fixture_mml, result);
}

void test_cornercases__some_crazy_alignment(void)
{
  fixture_tex = read_fixture_tex("cornercases/some_crazy_alignment.txt");
  fixture_mml = read_fixture_mml("cornercases/some_crazy_alignment.html");
  result = mtex2MML_parse(fixture_tex, strlen(fixture_tex), MTEX2MML_DELIMITER_DEFAULT);

  cl_assert_equal_s(fixture_mml, result);
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.18 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.14 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.13 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.12 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.11 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.10 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.9 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.8 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.7 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.6 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.5 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.4 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.3 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.2 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.1 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.6.0 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.5.12 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.5.0 ext/mathematical/mtex2MML/tests/cornercases.c
mathematical-1.4.2 ext/mathematical/mtex2MML/tests/cornercases.c