Sha256: f36cf992564f9834405d7434ffc34a14571cc78ebe5369677ee19316ac9464c3

Contents?: true

Size: 559 Bytes

Versions: 22

Compression:

Stored size: 559 Bytes

Contents

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

char * read_fixture_tex(const char *filename)
{
  const char *tex = cl_fixture(filename);
  return file2str(tex);
}

char * read_fixture_mml(const char *filename)
{
  const char *mml = cl_fixture(filename);
  char * data = file2str(mml);

  return trim(data);
}

void write_test_file(char * data)
{
  FILE *fp = fopen(cl_fixture("../test.html"), "w+");
  if (fp != NULL) {
    fputs(data, fp);
    fclose(fp);
  }
}

Version data entries

22 entries across 22 versions & 1 rubygems

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