Sha256: 6e9e8ade7cffb35fe98be9f34ac9d89c48211b85b756445224dc63be25a290cc

Contents?: true

Size: 776 Bytes

Versions: 22

Compression:

Stored size: 776 Bytes

Contents

#include "clar.h"
#include "clar_test.h"
#include "deps/trim/trim.h"
#include <stdio.h>
#include <string.h>

static char *fixture_tex;
static char *fixture_mml;
static char *result;

void test_performance__initialize(void)
{
  global_test_counter++;
}

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

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

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

void test_performance__big_file(void)
{
  fixture_tex = read_fixture_tex("performance/big_file.txt");
  fixture_mml = read_fixture_mml("performance/big_file.html");
  mtex2MML_filter(fixture_tex, strlen(fixture_tex), MTEX2MML_DELIMITER_DEFAULT);
  result = mtex2MML_output();

  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/performance.c
mathematical-1.6.18 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.14 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.13 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.12 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.11 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.10 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.9 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.8 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.7 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.6 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.5 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.4 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.3 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.2 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.1 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.6.0 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.5.12 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.5.0 ext/mathematical/mtex2MML/tests/performance.c
mathematical-1.4.2 ext/mathematical/mtex2MML/tests/performance.c