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