mathematical 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/Rakefile +4 -0
- data/ext/mathematical/extconf.rb +9 -15
- data/ext/mathematical/mtex2MML/build/mtex2MML.h +73 -0
- data/ext/mathematical/mtex2MML/{src/deps → deps}/uthash/utarray.h +0 -0
- data/ext/mathematical/mtex2MML/{src/deps → deps}/uthash/uthash.h +0 -0
- data/ext/mathematical/mtex2MML/{src/deps → deps}/uthash/utlist.h +0 -0
- data/ext/mathematical/mtex2MML/{src/deps → deps}/uthash/utstring.h +0 -0
- data/ext/mathematical/mtex2MML/src/color_definitions.c +1 -1
- data/ext/mathematical/mtex2MML/src/lex.yy.c +1100 -1098
- data/ext/mathematical/mtex2MML/src/main.c +137 -0
- data/ext/mathematical/mtex2MML/src/mtex2MML.h +11 -1
- data/ext/mathematical/mtex2MML/src/parse_extras.c +2 -2
- data/ext/mathematical/mtex2MML/src/parse_extras.h +36 -36
- data/ext/mathematical/mtex2MML/src/string_extras.c +0 -6
- data/ext/mathematical/mtex2MML/src/string_extras.h +1 -1
- data/ext/mathematical/mtex2MML/src/y.tab.c +3904 -3583
- data/ext/mathematical/mtex2MML/tests/array.c +127 -0
- data/ext/mathematical/mtex2MML/tests/basic.c +85 -0
- data/ext/mathematical/mtex2MML/tests/clar.c +642 -0
- data/ext/mathematical/mtex2MML/tests/clar.h +163 -0
- data/ext/mathematical/mtex2MML/tests/clar/fixtures.h +38 -0
- data/ext/mathematical/mtex2MML/tests/clar/fs.h +333 -0
- data/ext/mathematical/mtex2MML/tests/clar/print.h +66 -0
- data/ext/mathematical/mtex2MML/tests/clar/sandbox.h +139 -0
- data/ext/mathematical/mtex2MML/tests/clar_test.h +20 -0
- data/ext/mathematical/mtex2MML/tests/cornercases.c +45 -0
- data/ext/mathematical/mtex2MML/tests/deps/file2str/file2str.c +64 -0
- data/ext/mathematical/mtex2MML/tests/deps/file2str/file2str.h +12 -0
- data/ext/mathematical/mtex2MML/tests/deps/trim/trim.c +24 -0
- data/ext/mathematical/mtex2MML/tests/deps/trim/trim.h +7 -0
- data/ext/mathematical/mtex2MML/tests/env.c +333 -0
- data/ext/mathematical/mtex2MML/tests/functions.c +45 -0
- data/ext/mathematical/mtex2MML/tests/helpers.c +27 -0
- data/ext/mathematical/mtex2MML/tests/helpers.h +8 -0
- data/ext/mathematical/mtex2MML/tests/main.c +35 -0
- data/ext/mathematical/mtex2MML/tests/maliciousness.c +82 -0
- data/ext/mathematical/mtex2MML/tests/mathjax.c +2030 -0
- data/ext/mathematical/mtex2MML/tests/numbered_equations.c +47 -0
- data/lib/mathematical.rb +3 -48
- data/lib/mathematical/validator.rb +52 -0
- data/lib/mathematical/version.rb +1 -1
- data/test/mathematical/basic_test.rb +7 -0
- data/test/mathematical/maliciousness_test.rb +26 -1
- data/test/mathematical/mathjax_test.rb +2 -2
- metadata +31 -7
- data/ext/mathematical/mtex2MML/ext/extconf.rb +0 -4
@@ -0,0 +1,45 @@
|
|
1
|
+
#include "clar.h"
|
2
|
+
#include "clar_test.h"
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
static char *fixture_tex;
|
6
|
+
static char *fixture_mml;
|
7
|
+
static char *result;
|
8
|
+
|
9
|
+
void test_functions__initialize(void)
|
10
|
+
{
|
11
|
+
global_test_counter++;
|
12
|
+
}
|
13
|
+
|
14
|
+
void test_functions__cleanup(void)
|
15
|
+
{
|
16
|
+
if (fixture_tex != NULL) {
|
17
|
+
free(fixture_tex);
|
18
|
+
}
|
19
|
+
|
20
|
+
if (fixture_mml != NULL) {
|
21
|
+
free(fixture_mml);
|
22
|
+
}
|
23
|
+
|
24
|
+
if (result != NULL) {
|
25
|
+
free(result);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
void test_functions__max_limits(void)
|
30
|
+
{
|
31
|
+
fixture_tex = read_fixture_tex("functions/max_limits.txt");
|
32
|
+
fixture_mml = read_fixture_mml("functions/max_limits.html");
|
33
|
+
result = mtex2MML_parse(fixture_tex, strlen(fixture_tex));
|
34
|
+
|
35
|
+
cl_assert_equal_s(fixture_mml, result);
|
36
|
+
}
|
37
|
+
|
38
|
+
void test_functions__min_limits(void)
|
39
|
+
{
|
40
|
+
fixture_tex = read_fixture_tex("functions/min_limits.txt");
|
41
|
+
fixture_mml = read_fixture_mml("functions/min_limits.html");
|
42
|
+
result = mtex2MML_parse(fixture_tex, strlen(fixture_tex));
|
43
|
+
|
44
|
+
cl_assert_equal_s(fixture_mml, result);
|
45
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#include "helpers.h"
|
2
|
+
#include "deps/file2str/file2str.h"
|
3
|
+
#include "deps/trim/trim.h"
|
4
|
+
#include "clar.h"
|
5
|
+
#include <stdio.h>
|
6
|
+
#include <string.h>
|
7
|
+
|
8
|
+
char * read_fixture_tex(char *filename)
|
9
|
+
{
|
10
|
+
return file2str(cl_fixture(filename));
|
11
|
+
}
|
12
|
+
|
13
|
+
char * read_fixture_mml(char *filename)
|
14
|
+
{
|
15
|
+
char * data = file2str(cl_fixture(filename));
|
16
|
+
|
17
|
+
return trim(data);
|
18
|
+
}
|
19
|
+
|
20
|
+
void write_test_file(char * data)
|
21
|
+
{
|
22
|
+
FILE *fp = fopen(cl_fixture("../test.html"), "w+");
|
23
|
+
if (fp != NULL) {
|
24
|
+
fputs(data, fp);
|
25
|
+
fclose(fp);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Vicent Marti. All rights reserved.
|
3
|
+
*
|
4
|
+
* This file is part of clar, distributed under the ISC license.
|
5
|
+
* For full terms see the included COPYING file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#include "clar_test.h"
|
9
|
+
|
10
|
+
/*
|
11
|
+
* Minimal main() for clar tests.
|
12
|
+
*
|
13
|
+
* Modify this with any application specific setup or teardown that you need.
|
14
|
+
* The only required line is the call to `clar_test(argc, argv)`, which will
|
15
|
+
* execute the test suite. If you want to check the return value of the test
|
16
|
+
* application, main() should return the same value returned by clar_test().
|
17
|
+
*/
|
18
|
+
|
19
|
+
int global_test_counter = 0;
|
20
|
+
|
21
|
+
#ifdef _WIN32
|
22
|
+
int __cdecl main(int argc, char *argv[])
|
23
|
+
#else
|
24
|
+
int main(int argc, char *argv[])
|
25
|
+
#endif
|
26
|
+
{
|
27
|
+
global_test_counter = 0;
|
28
|
+
|
29
|
+
/* Run the test suite */
|
30
|
+
int ret = clar_test(argc, argv);
|
31
|
+
|
32
|
+
// cl_assert_equal_i(3, global_test_counter);
|
33
|
+
|
34
|
+
return ret;
|
35
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
#include "clar.h"
|
2
|
+
#include "clar_test.h"
|
3
|
+
#include <stdio.h>
|
4
|
+
|
5
|
+
static char *fixture_tex;
|
6
|
+
static char *fixture_mml;
|
7
|
+
static char *result;
|
8
|
+
static char *huge;
|
9
|
+
|
10
|
+
void test_maliciousness__initialize(void)
|
11
|
+
{
|
12
|
+
global_test_counter++;
|
13
|
+
}
|
14
|
+
|
15
|
+
void test_maliciousness__cleanup(void)
|
16
|
+
{
|
17
|
+
if (fixture_tex != NULL) {
|
18
|
+
free(fixture_tex);
|
19
|
+
}
|
20
|
+
|
21
|
+
if (fixture_mml != NULL) {
|
22
|
+
free(fixture_mml);
|
23
|
+
}
|
24
|
+
|
25
|
+
if (result != NULL) {
|
26
|
+
free(result);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
void test_maliciousness__parsing(void)
|
31
|
+
{
|
32
|
+
fixture_tex = read_fixture_tex("maliciousness/just_enough_parsing.txt");
|
33
|
+
fixture_mml = read_fixture_mml("maliciousness/just_enough_parsing.html");
|
34
|
+
result = mtex2MML_parse(fixture_tex, strlen(fixture_tex));
|
35
|
+
|
36
|
+
cl_assert_equal_s(fixture_mml, result);
|
37
|
+
}
|
38
|
+
|
39
|
+
void test_maliciousness__excess_parsing(void)
|
40
|
+
{
|
41
|
+
fixture_tex = read_fixture_tex("maliciousness/excess_parsing.txt");
|
42
|
+
fixture_mml = read_fixture_mml("maliciousness/just_enough_parsing.html");
|
43
|
+
result = mtex2MML_parse(fixture_tex, strlen(fixture_tex));
|
44
|
+
|
45
|
+
cl_assert(result == NULL);
|
46
|
+
result = malloc(1);
|
47
|
+
}
|
48
|
+
|
49
|
+
void test_maliciousness__unknown_command_with_parse(void)
|
50
|
+
{
|
51
|
+
// lazy way to continue with the free in cleanup
|
52
|
+
fixture_tex = malloc(1);
|
53
|
+
fixture_mml = malloc(1);
|
54
|
+
|
55
|
+
char *s1 = "$\\not__thisisnotreal$";
|
56
|
+
result = mtex2MML_parse(s1, strlen(s1));
|
57
|
+
cl_assert(result == NULL);
|
58
|
+
|
59
|
+
char *s2 = "$x$";
|
60
|
+
result = mtex2MML_parse(s2, strlen(s2));
|
61
|
+
cl_assert(result != NULL);
|
62
|
+
}
|
63
|
+
|
64
|
+
void test_maliciousness__unknown_command_with_filter(void)
|
65
|
+
{
|
66
|
+
// lazy way to continue with the free in cleanup
|
67
|
+
fixture_tex = malloc(1);
|
68
|
+
fixture_mml = malloc(1);
|
69
|
+
|
70
|
+
char *s1 = "$\\not__thisisnotreal$";
|
71
|
+
int status1 = mtex2MML_filter(s1, strlen(s1));
|
72
|
+
result = mtex2MML_output();
|
73
|
+
cl_assert(status1 == 1);
|
74
|
+
cl_assert(strlen(result) == 0);
|
75
|
+
free(result);
|
76
|
+
|
77
|
+
char *s2 = "$x$";
|
78
|
+
int status2 = mtex2MML_filter(s2, strlen(s2));
|
79
|
+
result = mtex2MML_output();
|
80
|
+
cl_assert(status2 == 0);
|
81
|
+
cl_assert(strlen(result) > 0);
|
82
|
+
}
|
@@ -0,0 +1,2030 @@
|
|
1
|
+
#include "clar.h"
|
2
|
+
#include "clar_test.h"
|
3
|
+
#include <stdio.h>
|
4
|
+
#include <string.h>
|
5
|
+
|
6
|
+
static char *fixture_tex;
|
7
|
+
static char *fixture_mml;
|
8
|
+
static char *result;
|
9
|
+
|
10
|
+
void test_mathjax__initialize(void)
|
11
|
+
{
|
12
|
+
global_test_counter++;
|
13
|
+
}
|
14
|
+
|
15
|
+
void test_mathjax__cleanup(void)
|
16
|
+
{
|
17
|
+
if (fixture_tex != NULL) {
|
18
|
+
free(fixture_tex);
|
19
|
+
}
|
20
|
+
|
21
|
+
if (fixture_mml != NULL) {
|
22
|
+
free(fixture_mml);
|
23
|
+
}
|
24
|
+
|
25
|
+
if (result != NULL) {
|
26
|
+
free(result);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
/* EVERYTHING BELOW IS AUTOGENERATED */
|
31
|
+
|
32
|
+
void test_mathjax__abovebelowaccents1(void)
|
33
|
+
{
|
34
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/accents-1.txt");
|
35
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/accents-1.html");
|
36
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
37
|
+
result = mtex2MML_output();
|
38
|
+
|
39
|
+
cl_assert_equal_s(fixture_mml, result);
|
40
|
+
}
|
41
|
+
|
42
|
+
void test_mathjax__abovebelowaccents2(void)
|
43
|
+
{
|
44
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/accents-2.txt");
|
45
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/accents-2.html");
|
46
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
47
|
+
result = mtex2MML_output();
|
48
|
+
|
49
|
+
cl_assert_equal_s(fixture_mml, result);
|
50
|
+
}
|
51
|
+
|
52
|
+
void test_mathjax__abovebelowaccents3(void)
|
53
|
+
{
|
54
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/accents-3.txt");
|
55
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/accents-3.html");
|
56
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
57
|
+
result = mtex2MML_output();
|
58
|
+
|
59
|
+
cl_assert_equal_s(fixture_mml, result);
|
60
|
+
}
|
61
|
+
|
62
|
+
void test_mathjax__abovebelowbuildrel1(void)
|
63
|
+
{
|
64
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/buildrel-1.txt");
|
65
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/buildrel-1.html");
|
66
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
67
|
+
result = mtex2MML_output();
|
68
|
+
|
69
|
+
cl_assert_equal_s(fixture_mml, result);
|
70
|
+
}
|
71
|
+
|
72
|
+
void test_mathjax__abovebelowissue877(void)
|
73
|
+
{
|
74
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/issue877.txt");
|
75
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/issue877.html");
|
76
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
77
|
+
result = mtex2MML_output();
|
78
|
+
|
79
|
+
cl_assert_equal_s(fixture_mml, result);
|
80
|
+
}
|
81
|
+
|
82
|
+
void test_mathjax__abovebelowissue937(void)
|
83
|
+
{
|
84
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/issue937.txt");
|
85
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/issue937.html");
|
86
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
87
|
+
result = mtex2MML_output();
|
88
|
+
|
89
|
+
cl_assert_equal_s(fixture_mml, result);
|
90
|
+
}
|
91
|
+
|
92
|
+
void test_mathjax__abovebelowoverbrace1(void)
|
93
|
+
{
|
94
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/overbrace-1.txt");
|
95
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/overbrace-1.html");
|
96
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
97
|
+
result = mtex2MML_output();
|
98
|
+
|
99
|
+
cl_assert_equal_s(fixture_mml, result);
|
100
|
+
}
|
101
|
+
|
102
|
+
void test_mathjax__abovebelowoverbracket1(void)
|
103
|
+
{
|
104
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/overbracket-1.txt");
|
105
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/overbracket-1.html");
|
106
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
107
|
+
result = mtex2MML_output();
|
108
|
+
|
109
|
+
cl_assert_equal_s(fixture_mml, result);
|
110
|
+
}
|
111
|
+
|
112
|
+
void test_mathjax__abovebelowoverset1(void)
|
113
|
+
{
|
114
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/overset-1.txt");
|
115
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/overset-1.html");
|
116
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
117
|
+
result = mtex2MML_output();
|
118
|
+
|
119
|
+
cl_assert_equal_s(fixture_mml, result);
|
120
|
+
}
|
121
|
+
|
122
|
+
void test_mathjax__abovebelowsideset1(void)
|
123
|
+
{
|
124
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/sideset-1.txt");
|
125
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/sideset-1.html");
|
126
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
127
|
+
result = mtex2MML_output();
|
128
|
+
|
129
|
+
cl_assert_equal_s(fixture_mml, result);
|
130
|
+
}
|
131
|
+
|
132
|
+
void test_mathjax__abovebelowstackrel1(void)
|
133
|
+
{
|
134
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/stackrel-1.txt");
|
135
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/stackrel-1.html");
|
136
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
137
|
+
result = mtex2MML_output();
|
138
|
+
|
139
|
+
cl_assert_equal_s(fixture_mml, result);
|
140
|
+
}
|
141
|
+
|
142
|
+
void test_mathjax__abovebelowsubarray1(void)
|
143
|
+
{
|
144
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/subarray-1.txt");
|
145
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/subarray-1.html");
|
146
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
147
|
+
result = mtex2MML_output();
|
148
|
+
|
149
|
+
cl_assert_equal_s(fixture_mml, result);
|
150
|
+
}
|
151
|
+
|
152
|
+
void test_mathjax__abovebelowsubstack1(void)
|
153
|
+
{
|
154
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/substack-1.txt");
|
155
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/substack-1.html");
|
156
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
157
|
+
result = mtex2MML_output();
|
158
|
+
|
159
|
+
cl_assert_equal_s(fixture_mml, result);
|
160
|
+
}
|
161
|
+
|
162
|
+
void test_mathjax__abovebelowunderbrace1(void)
|
163
|
+
{
|
164
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/underbrace-1.txt");
|
165
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/underbrace-1.html");
|
166
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
167
|
+
result = mtex2MML_output();
|
168
|
+
|
169
|
+
cl_assert_equal_s(fixture_mml, result);
|
170
|
+
}
|
171
|
+
|
172
|
+
void test_mathjax__abovebelowunderbracket1(void)
|
173
|
+
{
|
174
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/underbracket-1.txt");
|
175
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/underbracket-1.html");
|
176
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
177
|
+
result = mtex2MML_output();
|
178
|
+
|
179
|
+
cl_assert_equal_s(fixture_mml, result);
|
180
|
+
}
|
181
|
+
|
182
|
+
void test_mathjax__abovebelowunderset1(void)
|
183
|
+
{
|
184
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/above-below/underset-1.txt");
|
185
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/above-below/underset-1.html");
|
186
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
187
|
+
result = mtex2MML_output();
|
188
|
+
|
189
|
+
cl_assert_equal_s(fixture_mml, result);
|
190
|
+
}
|
191
|
+
|
192
|
+
void test_mathjax__arrowsarrows1(void)
|
193
|
+
{
|
194
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/arrows/arrows-1.txt");
|
195
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/arrows/arrows-1.html");
|
196
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
197
|
+
result = mtex2MML_output();
|
198
|
+
|
199
|
+
cl_assert_equal_s(fixture_mml, result);
|
200
|
+
}
|
201
|
+
|
202
|
+
void test_mathjax__arrowsarrows2(void)
|
203
|
+
{
|
204
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/arrows/arrows-2.txt");
|
205
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/arrows/arrows-2.html");
|
206
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
207
|
+
result = mtex2MML_output();
|
208
|
+
|
209
|
+
cl_assert_equal_s(fixture_mml, result);
|
210
|
+
}
|
211
|
+
|
212
|
+
void test_mathjax__arrowsarrows3(void)
|
213
|
+
{
|
214
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/arrows/arrows-3.txt");
|
215
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/arrows/arrows-3.html");
|
216
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
217
|
+
result = mtex2MML_output();
|
218
|
+
|
219
|
+
cl_assert_equal_s(fixture_mml, result);
|
220
|
+
}
|
221
|
+
|
222
|
+
void test_mathjax__arrowsarrows4(void)
|
223
|
+
{
|
224
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/arrows/arrows-4.txt");
|
225
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/arrows/arrows-4.html");
|
226
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
227
|
+
result = mtex2MML_output();
|
228
|
+
|
229
|
+
cl_assert_equal_s(fixture_mml, result);
|
230
|
+
}
|
231
|
+
|
232
|
+
void test_mathjax__arrowsarrows5(void)
|
233
|
+
{
|
234
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/arrows/arrows-5.txt");
|
235
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/arrows/arrows-5.html");
|
236
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
237
|
+
result = mtex2MML_output();
|
238
|
+
|
239
|
+
cl_assert_equal_s(fixture_mml, result);
|
240
|
+
}
|
241
|
+
|
242
|
+
void test_mathjax__atomsmathinner1(void)
|
243
|
+
{
|
244
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathinner-1.txt");
|
245
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathinner-1.html");
|
246
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
247
|
+
result = mtex2MML_output();
|
248
|
+
|
249
|
+
cl_assert_equal_s(fixture_mml, result);
|
250
|
+
}
|
251
|
+
|
252
|
+
void test_mathjax__atomsmathop1a(void)
|
253
|
+
{
|
254
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathop-1a.txt");
|
255
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathop-1a.html");
|
256
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
257
|
+
result = mtex2MML_output();
|
258
|
+
|
259
|
+
cl_assert_equal_s(fixture_mml, result);
|
260
|
+
}
|
261
|
+
|
262
|
+
void test_mathjax__atomsmathop1b(void)
|
263
|
+
{
|
264
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathop-1b.txt");
|
265
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathop-1b.html");
|
266
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
267
|
+
result = mtex2MML_output();
|
268
|
+
|
269
|
+
cl_assert_equal_s(fixture_mml, result);
|
270
|
+
}
|
271
|
+
|
272
|
+
void test_mathjax__atomsmathopenclose1(void)
|
273
|
+
{
|
274
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathopenclose-1.txt");
|
275
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathopenclose-1.html");
|
276
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
277
|
+
result = mtex2MML_output();
|
278
|
+
|
279
|
+
cl_assert_equal_s(fixture_mml, result);
|
280
|
+
}
|
281
|
+
|
282
|
+
void test_mathjax__atomsmathord1(void)
|
283
|
+
{
|
284
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathord-1.txt");
|
285
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathord-1.html");
|
286
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
287
|
+
result = mtex2MML_output();
|
288
|
+
|
289
|
+
cl_assert_equal_s(fixture_mml, result);
|
290
|
+
}
|
291
|
+
|
292
|
+
void test_mathjax__atomsmathpunct1(void)
|
293
|
+
{
|
294
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathpunct-1.txt");
|
295
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathpunct-1.html");
|
296
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
297
|
+
result = mtex2MML_output();
|
298
|
+
|
299
|
+
cl_assert_equal_s(fixture_mml, result);
|
300
|
+
}
|
301
|
+
|
302
|
+
void test_mathjax__atomsmathrel1(void)
|
303
|
+
{
|
304
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/atoms/mathrel-1.txt");
|
305
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/atoms/mathrel-1.html");
|
306
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
307
|
+
result = mtex2MML_output();
|
308
|
+
|
309
|
+
cl_assert_equal_s(fixture_mml, result);
|
310
|
+
}
|
311
|
+
|
312
|
+
void test_mathjax__basicoperatorsbackslashed1(void)
|
313
|
+
{
|
314
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/basic-operators/backslashed-1.txt");
|
315
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/basic-operators/backslashed-1.html");
|
316
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
317
|
+
result = mtex2MML_output();
|
318
|
+
|
319
|
+
cl_assert_equal_s(fixture_mml, result);
|
320
|
+
}
|
321
|
+
|
322
|
+
void test_mathjax__basicoperatorsbasicoperators1(void)
|
323
|
+
{
|
324
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/basic-operators/basic-operators-1.txt");
|
325
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/basic-operators/basic-operators-1.html");
|
326
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
327
|
+
result = mtex2MML_output();
|
328
|
+
|
329
|
+
cl_assert_equal_s(fixture_mml, result);
|
330
|
+
}
|
331
|
+
|
332
|
+
void test_mathjax__basicoperatorsremap1(void)
|
333
|
+
{
|
334
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/basic-operators/remap-1.txt");
|
335
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/basic-operators/remap-1.html");
|
336
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
337
|
+
result = mtex2MML_output();
|
338
|
+
|
339
|
+
cl_assert_equal_s(fixture_mml, result);
|
340
|
+
}
|
341
|
+
|
342
|
+
void test_mathjax__colorscolor1(void)
|
343
|
+
{
|
344
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/colors/color-1.txt");
|
345
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/colors/color-1.html");
|
346
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
347
|
+
result = mtex2MML_output();
|
348
|
+
|
349
|
+
cl_assert_equal_s(fixture_mml, result);
|
350
|
+
}
|
351
|
+
|
352
|
+
void test_mathjax__colorscolorbox1(void)
|
353
|
+
{
|
354
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/colors/colorbox-1.txt");
|
355
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/colors/colorbox-1.html");
|
356
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
357
|
+
result = mtex2MML_output();
|
358
|
+
|
359
|
+
cl_assert_equal_s(fixture_mml, result);
|
360
|
+
}
|
361
|
+
|
362
|
+
void test_mathjax__colorsnamedcolors1(void)
|
363
|
+
{
|
364
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/colors/namedcolors-1.txt");
|
365
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/colors/namedcolors-1.html");
|
366
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
367
|
+
result = mtex2MML_output();
|
368
|
+
|
369
|
+
cl_assert_equal_s(fixture_mml, result);
|
370
|
+
}
|
371
|
+
|
372
|
+
void test_mathjax__delimitersbig1(void)
|
373
|
+
{
|
374
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/big-1.txt");
|
375
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/big-1.html");
|
376
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
377
|
+
result = mtex2MML_output();
|
378
|
+
|
379
|
+
cl_assert_equal_s(fixture_mml, result);
|
380
|
+
}
|
381
|
+
|
382
|
+
void test_mathjax__delimitersbig2(void)
|
383
|
+
{
|
384
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/big-2.txt");
|
385
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/big-2.html");
|
386
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
387
|
+
result = mtex2MML_output();
|
388
|
+
|
389
|
+
cl_assert_equal_s(fixture_mml, result);
|
390
|
+
}
|
391
|
+
|
392
|
+
void test_mathjax__delimitersbig3(void)
|
393
|
+
{
|
394
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/big-3.txt");
|
395
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/big-3.html");
|
396
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
397
|
+
result = mtex2MML_output();
|
398
|
+
|
399
|
+
cl_assert_equal_s(fixture_mml, result);
|
400
|
+
}
|
401
|
+
|
402
|
+
void test_mathjax__delimitersdelimiters1(void)
|
403
|
+
{
|
404
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/delimiters-1.txt");
|
405
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/delimiters-1.html");
|
406
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
407
|
+
result = mtex2MML_output();
|
408
|
+
|
409
|
+
cl_assert_equal_s(fixture_mml, result);
|
410
|
+
}
|
411
|
+
|
412
|
+
void test_mathjax__delimitersdelimiters2(void)
|
413
|
+
{
|
414
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/delimiters-2.txt");
|
415
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/delimiters-2.html");
|
416
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
417
|
+
result = mtex2MML_output();
|
418
|
+
|
419
|
+
cl_assert_equal_s(fixture_mml, result);
|
420
|
+
}
|
421
|
+
|
422
|
+
void test_mathjax__delimitersissue775(void)
|
423
|
+
{
|
424
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue775.txt");
|
425
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue775.html");
|
426
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
427
|
+
result = mtex2MML_output();
|
428
|
+
|
429
|
+
cl_assert_equal_s(fixture_mml, result);
|
430
|
+
}
|
431
|
+
|
432
|
+
void test_mathjax__delimitersissue7761a(void)
|
433
|
+
{
|
434
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue776-1a.txt");
|
435
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue776-1a.html");
|
436
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
437
|
+
result = mtex2MML_output();
|
438
|
+
|
439
|
+
cl_assert_equal_s(fixture_mml, result);
|
440
|
+
}
|
441
|
+
|
442
|
+
void test_mathjax__delimitersissue7761b(void)
|
443
|
+
{
|
444
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue776-1b.txt");
|
445
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue776-1b.html");
|
446
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
447
|
+
result = mtex2MML_output();
|
448
|
+
|
449
|
+
cl_assert_equal_s(fixture_mml, result);
|
450
|
+
}
|
451
|
+
|
452
|
+
void test_mathjax__delimitersissue7762(void)
|
453
|
+
{
|
454
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue776-2.txt");
|
455
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue776-2.html");
|
456
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
457
|
+
result = mtex2MML_output();
|
458
|
+
|
459
|
+
cl_assert_equal_s(fixture_mml, result);
|
460
|
+
}
|
461
|
+
|
462
|
+
void test_mathjax__delimitersissue7763(void)
|
463
|
+
{
|
464
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue776-3.txt");
|
465
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue776-3.html");
|
466
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
467
|
+
result = mtex2MML_output();
|
468
|
+
|
469
|
+
cl_assert_equal_s(fixture_mml, result);
|
470
|
+
}
|
471
|
+
|
472
|
+
void test_mathjax__delimitersissue7764(void)
|
473
|
+
{
|
474
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue776-4.txt");
|
475
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue776-4.html");
|
476
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
477
|
+
result = mtex2MML_output();
|
478
|
+
|
479
|
+
cl_assert_equal_s(fixture_mml, result);
|
480
|
+
}
|
481
|
+
|
482
|
+
void test_mathjax__delimitersissue7765(void)
|
483
|
+
{
|
484
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/issue776-5.txt");
|
485
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/issue776-5.html");
|
486
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
487
|
+
result = mtex2MML_output();
|
488
|
+
|
489
|
+
cl_assert_equal_s(fixture_mml, result);
|
490
|
+
}
|
491
|
+
|
492
|
+
void test_mathjax__delimitersleftright1(void)
|
493
|
+
{
|
494
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/delimiters/left-right-1.txt");
|
495
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/delimiters/left-right-1.html");
|
496
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
497
|
+
result = mtex2MML_output();
|
498
|
+
|
499
|
+
cl_assert_equal_s(fixture_mml, result);
|
500
|
+
}
|
501
|
+
|
502
|
+
void test_mathjax__environmentsalign1a(void)
|
503
|
+
{
|
504
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/align-1a.txt");
|
505
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/align-1a.html");
|
506
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
507
|
+
result = mtex2MML_output();
|
508
|
+
|
509
|
+
cl_assert_equal_s(fixture_mml, result);
|
510
|
+
}
|
511
|
+
|
512
|
+
void test_mathjax__environmentsalign1b(void)
|
513
|
+
{
|
514
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/align-1b.txt");
|
515
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/align-1b.html");
|
516
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
517
|
+
result = mtex2MML_output();
|
518
|
+
|
519
|
+
cl_assert_equal_s(fixture_mml, result);
|
520
|
+
}
|
521
|
+
|
522
|
+
void test_mathjax__environmentsalignat1a(void)
|
523
|
+
{
|
524
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/alignat-1a.txt");
|
525
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/alignat-1a.html");
|
526
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
527
|
+
result = mtex2MML_output();
|
528
|
+
|
529
|
+
cl_assert_equal_s(fixture_mml, result);
|
530
|
+
}
|
531
|
+
|
532
|
+
void test_mathjax__environmentsalignat1b(void)
|
533
|
+
{
|
534
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/alignat-1b.txt");
|
535
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/alignat-1b.html");
|
536
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
537
|
+
result = mtex2MML_output();
|
538
|
+
|
539
|
+
cl_assert_equal_s(fixture_mml, result);
|
540
|
+
}
|
541
|
+
|
542
|
+
void test_mathjax__environmentsaligned1(void)
|
543
|
+
{
|
544
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/aligned-1.txt");
|
545
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/aligned-1.html");
|
546
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
547
|
+
result = mtex2MML_output();
|
548
|
+
|
549
|
+
cl_assert_equal_s(fixture_mml, result);
|
550
|
+
}
|
551
|
+
|
552
|
+
void test_mathjax__environmentsaligned2(void)
|
553
|
+
{
|
554
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/aligned-2.txt");
|
555
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/aligned-2.html");
|
556
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
557
|
+
result = mtex2MML_output();
|
558
|
+
|
559
|
+
cl_assert_equal_s(fixture_mml, result);
|
560
|
+
}
|
561
|
+
|
562
|
+
void test_mathjax__environmentsalignedat1(void)
|
563
|
+
{
|
564
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/alignedat-1.txt");
|
565
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/alignedat-1.html");
|
566
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
567
|
+
result = mtex2MML_output();
|
568
|
+
|
569
|
+
cl_assert_equal_s(fixture_mml, result);
|
570
|
+
}
|
571
|
+
|
572
|
+
void test_mathjax__environmentseqalign1(void)
|
573
|
+
{
|
574
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/eqalign-1.txt");
|
575
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/eqalign-1.html");
|
576
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
577
|
+
result = mtex2MML_output();
|
578
|
+
|
579
|
+
cl_assert_equal_s(fixture_mml, result);
|
580
|
+
}
|
581
|
+
|
582
|
+
void test_mathjax__environmentseqalignno1(void)
|
583
|
+
{
|
584
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/eqalignno-1.txt");
|
585
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/eqalignno-1.html");
|
586
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
587
|
+
result = mtex2MML_output();
|
588
|
+
|
589
|
+
cl_assert_equal_s(fixture_mml, result);
|
590
|
+
}
|
591
|
+
|
592
|
+
void test_mathjax__environmentseqnarray1a(void)
|
593
|
+
{
|
594
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/eqnarray-1a.txt");
|
595
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/eqnarray-1a.html");
|
596
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
597
|
+
result = mtex2MML_output();
|
598
|
+
|
599
|
+
cl_assert_equal_s(fixture_mml, result);
|
600
|
+
}
|
601
|
+
|
602
|
+
void test_mathjax__environmentseqnarray1b(void)
|
603
|
+
{
|
604
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/eqnarray-1b.txt");
|
605
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/eqnarray-1b.html");
|
606
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
607
|
+
result = mtex2MML_output();
|
608
|
+
|
609
|
+
cl_assert_equal_s(fixture_mml, result);
|
610
|
+
}
|
611
|
+
|
612
|
+
void test_mathjax__environmentsequation1(void)
|
613
|
+
{
|
614
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/equation-1.txt");
|
615
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/equation-1.html");
|
616
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
617
|
+
result = mtex2MML_output();
|
618
|
+
|
619
|
+
cl_assert_equal_s(fixture_mml, result);
|
620
|
+
}
|
621
|
+
|
622
|
+
void test_mathjax__environmentsequation2(void)
|
623
|
+
{
|
624
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/equation-2.txt");
|
625
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/equation-2.html");
|
626
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
627
|
+
result = mtex2MML_output();
|
628
|
+
|
629
|
+
cl_assert_equal_s(fixture_mml, result);
|
630
|
+
}
|
631
|
+
|
632
|
+
void test_mathjax__environmentsgather1a(void)
|
633
|
+
{
|
634
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/gather-1a.txt");
|
635
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/gather-1a.html");
|
636
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
637
|
+
result = mtex2MML_output();
|
638
|
+
|
639
|
+
cl_assert_equal_s(fixture_mml, result);
|
640
|
+
}
|
641
|
+
|
642
|
+
void test_mathjax__environmentsgather1b(void)
|
643
|
+
{
|
644
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/gather-1b.txt");
|
645
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/gather-1b.html");
|
646
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
647
|
+
result = mtex2MML_output();
|
648
|
+
|
649
|
+
cl_assert_equal_s(fixture_mml, result);
|
650
|
+
}
|
651
|
+
|
652
|
+
void test_mathjax__environmentsgathered1(void)
|
653
|
+
{
|
654
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/gathered-1.txt");
|
655
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/gathered-1.html");
|
656
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
657
|
+
result = mtex2MML_output();
|
658
|
+
|
659
|
+
cl_assert_equal_s(fixture_mml, result);
|
660
|
+
}
|
661
|
+
|
662
|
+
void test_mathjax__environmentsgathered2(void)
|
663
|
+
{
|
664
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/gathered-2.txt");
|
665
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/gathered-2.html");
|
666
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
667
|
+
result = mtex2MML_output();
|
668
|
+
|
669
|
+
cl_assert_equal_s(fixture_mml, result);
|
670
|
+
}
|
671
|
+
|
672
|
+
void test_mathjax__environmentsissue9821a(void)
|
673
|
+
{
|
674
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/issue982-1a.txt");
|
675
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/issue982-1a.html");
|
676
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
677
|
+
result = mtex2MML_output();
|
678
|
+
|
679
|
+
cl_assert_equal_s(fixture_mml, result);
|
680
|
+
}
|
681
|
+
|
682
|
+
void test_mathjax__environmentsissue9821b(void)
|
683
|
+
{
|
684
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/issue982-1b.txt");
|
685
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/issue982-1b.html");
|
686
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
687
|
+
result = mtex2MML_output();
|
688
|
+
|
689
|
+
cl_assert_equal_s(fixture_mml, result);
|
690
|
+
}
|
691
|
+
|
692
|
+
void test_mathjax__environmentsissue9822a(void)
|
693
|
+
{
|
694
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/issue982-2a.txt");
|
695
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/issue982-2a.html");
|
696
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
697
|
+
result = mtex2MML_output();
|
698
|
+
|
699
|
+
cl_assert_equal_s(fixture_mml, result);
|
700
|
+
}
|
701
|
+
|
702
|
+
void test_mathjax__environmentsissue9822b(void)
|
703
|
+
{
|
704
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/issue982-2b.txt");
|
705
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/issue982-2b.html");
|
706
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
707
|
+
result = mtex2MML_output();
|
708
|
+
|
709
|
+
cl_assert_equal_s(fixture_mml, result);
|
710
|
+
}
|
711
|
+
|
712
|
+
void test_mathjax__environmentsissue9823a(void)
|
713
|
+
{
|
714
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/issue982-3a.txt");
|
715
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/issue982-3a.html");
|
716
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
717
|
+
result = mtex2MML_output();
|
718
|
+
|
719
|
+
cl_assert_equal_s(fixture_mml, result);
|
720
|
+
}
|
721
|
+
|
722
|
+
void test_mathjax__environmentsissue9823b(void)
|
723
|
+
{
|
724
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/issue982-3b.txt");
|
725
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/issue982-3b.html");
|
726
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
727
|
+
result = mtex2MML_output();
|
728
|
+
|
729
|
+
cl_assert_equal_s(fixture_mml, result);
|
730
|
+
}
|
731
|
+
|
732
|
+
void test_mathjax__environmentsmultline1a(void)
|
733
|
+
{
|
734
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/multline-1a.txt");
|
735
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/multline-1a.html");
|
736
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
737
|
+
result = mtex2MML_output();
|
738
|
+
|
739
|
+
cl_assert_equal_s(fixture_mml, result);
|
740
|
+
}
|
741
|
+
|
742
|
+
void test_mathjax__environmentsmultline1b(void)
|
743
|
+
{
|
744
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/multline-1b.txt");
|
745
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/multline-1b.html");
|
746
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
747
|
+
result = mtex2MML_output();
|
748
|
+
|
749
|
+
cl_assert_equal_s(fixture_mml, result);
|
750
|
+
}
|
751
|
+
|
752
|
+
void test_mathjax__environmentssplit1(void)
|
753
|
+
{
|
754
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/environments/split-1.txt");
|
755
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/environments/split-1.html");
|
756
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
757
|
+
result = mtex2MML_output();
|
758
|
+
|
759
|
+
cl_assert_equal_s(fixture_mml, result);
|
760
|
+
}
|
761
|
+
|
762
|
+
void test_mathjax__fracabove1(void)
|
763
|
+
{
|
764
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/above-1.txt");
|
765
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/above-1.html");
|
766
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
767
|
+
result = mtex2MML_output();
|
768
|
+
|
769
|
+
cl_assert_equal_s(fixture_mml, result);
|
770
|
+
}
|
771
|
+
|
772
|
+
void test_mathjax__fracabovewithdelims1(void)
|
773
|
+
{
|
774
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/abovewithdelims-1.txt");
|
775
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/abovewithdelims-1.html");
|
776
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
777
|
+
result = mtex2MML_output();
|
778
|
+
|
779
|
+
cl_assert_equal_s(fixture_mml, result);
|
780
|
+
}
|
781
|
+
|
782
|
+
void test_mathjax__fracatop1(void)
|
783
|
+
{
|
784
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/atop-1.txt");
|
785
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/atop-1.html");
|
786
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
787
|
+
result = mtex2MML_output();
|
788
|
+
|
789
|
+
cl_assert_equal_s(fixture_mml, result);
|
790
|
+
}
|
791
|
+
|
792
|
+
void test_mathjax__fracatopwithdelims1(void)
|
793
|
+
{
|
794
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/atopwithdelims-1.txt");
|
795
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/atopwithdelims-1.html");
|
796
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
797
|
+
result = mtex2MML_output();
|
798
|
+
|
799
|
+
cl_assert_equal_s(fixture_mml, result);
|
800
|
+
}
|
801
|
+
|
802
|
+
void test_mathjax__fracbinom1(void)
|
803
|
+
{
|
804
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/binom-1.txt");
|
805
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/binom-1.html");
|
806
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
807
|
+
result = mtex2MML_output();
|
808
|
+
|
809
|
+
cl_assert_equal_s(fixture_mml, result);
|
810
|
+
}
|
811
|
+
|
812
|
+
void test_mathjax__fracbrace1(void)
|
813
|
+
{
|
814
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/brace-1.txt");
|
815
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/brace-1.html");
|
816
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
817
|
+
result = mtex2MML_output();
|
818
|
+
|
819
|
+
cl_assert_equal_s(fixture_mml, result);
|
820
|
+
}
|
821
|
+
|
822
|
+
void test_mathjax__fracbrack1(void)
|
823
|
+
{
|
824
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/brack-1.txt");
|
825
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/brack-1.html");
|
826
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
827
|
+
result = mtex2MML_output();
|
828
|
+
|
829
|
+
cl_assert_equal_s(fixture_mml, result);
|
830
|
+
}
|
831
|
+
|
832
|
+
void test_mathjax__fraccfrac1(void)
|
833
|
+
{
|
834
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/cfrac-1.txt");
|
835
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/cfrac-1.html");
|
836
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
837
|
+
result = mtex2MML_output();
|
838
|
+
|
839
|
+
cl_assert_equal_s(fixture_mml, result);
|
840
|
+
}
|
841
|
+
|
842
|
+
void test_mathjax__fracchoose1(void)
|
843
|
+
{
|
844
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/choose-1.txt");
|
845
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/choose-1.html");
|
846
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
847
|
+
result = mtex2MML_output();
|
848
|
+
|
849
|
+
cl_assert_equal_s(fixture_mml, result);
|
850
|
+
}
|
851
|
+
|
852
|
+
void test_mathjax__fracdbinom1(void)
|
853
|
+
{
|
854
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/dbinom-1.txt");
|
855
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/dbinom-1.html");
|
856
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
857
|
+
result = mtex2MML_output();
|
858
|
+
|
859
|
+
cl_assert_equal_s(fixture_mml, result);
|
860
|
+
}
|
861
|
+
|
862
|
+
void test_mathjax__fracdfrac1(void)
|
863
|
+
{
|
864
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/dfrac-1.txt");
|
865
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/dfrac-1.html");
|
866
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
867
|
+
result = mtex2MML_output();
|
868
|
+
|
869
|
+
cl_assert_equal_s(fixture_mml, result);
|
870
|
+
}
|
871
|
+
|
872
|
+
void test_mathjax__fracfrac1a(void)
|
873
|
+
{
|
874
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/frac-1a.txt");
|
875
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/frac-1a.html");
|
876
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
877
|
+
result = mtex2MML_output();
|
878
|
+
|
879
|
+
cl_assert_equal_s(fixture_mml, result);
|
880
|
+
}
|
881
|
+
|
882
|
+
void test_mathjax__fracfrac1b(void)
|
883
|
+
{
|
884
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/frac-1b.txt");
|
885
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/frac-1b.html");
|
886
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
887
|
+
result = mtex2MML_output();
|
888
|
+
|
889
|
+
cl_assert_equal_s(fixture_mml, result);
|
890
|
+
}
|
891
|
+
|
892
|
+
void test_mathjax__fracgenfrac1(void)
|
893
|
+
{
|
894
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/genfrac-1.txt");
|
895
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/genfrac-1.html");
|
896
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
897
|
+
result = mtex2MML_output();
|
898
|
+
|
899
|
+
cl_assert_equal_s(fixture_mml, result);
|
900
|
+
}
|
901
|
+
|
902
|
+
void test_mathjax__fracissue969(void)
|
903
|
+
{
|
904
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/issue969.txt");
|
905
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/issue969.html");
|
906
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
907
|
+
result = mtex2MML_output();
|
908
|
+
|
909
|
+
cl_assert_equal_s(fixture_mml, result);
|
910
|
+
}
|
911
|
+
|
912
|
+
void test_mathjax__fracoverwithdelims1(void)
|
913
|
+
{
|
914
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/overwithdelims-1.txt");
|
915
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/overwithdelims-1.html");
|
916
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
917
|
+
result = mtex2MML_output();
|
918
|
+
|
919
|
+
cl_assert_equal_s(fixture_mml, result);
|
920
|
+
}
|
921
|
+
|
922
|
+
void test_mathjax__fractbinom1(void)
|
923
|
+
{
|
924
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/tbinom-1.txt");
|
925
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/tbinom-1.html");
|
926
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
927
|
+
result = mtex2MML_output();
|
928
|
+
|
929
|
+
cl_assert_equal_s(fixture_mml, result);
|
930
|
+
}
|
931
|
+
|
932
|
+
void test_mathjax__fractfrac1(void)
|
933
|
+
{
|
934
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/frac/tfrac-1.txt");
|
935
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/frac/tfrac-1.html");
|
936
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
937
|
+
result = mtex2MML_output();
|
938
|
+
|
939
|
+
cl_assert_equal_s(fixture_mml, result);
|
940
|
+
}
|
941
|
+
|
942
|
+
void test_mathjax__issuesissue11522(void)
|
943
|
+
{
|
944
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue1152-2.txt");
|
945
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue1152-2.html");
|
946
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
947
|
+
result = mtex2MML_output();
|
948
|
+
|
949
|
+
cl_assert_equal_s(fixture_mml, result);
|
950
|
+
}
|
951
|
+
|
952
|
+
void test_mathjax__issuesissue375(void)
|
953
|
+
{
|
954
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue375.txt");
|
955
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue375.html");
|
956
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
957
|
+
result = mtex2MML_output();
|
958
|
+
|
959
|
+
cl_assert_equal_s(fixture_mml, result);
|
960
|
+
}
|
961
|
+
|
962
|
+
void test_mathjax__issuesissue856(void)
|
963
|
+
{
|
964
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue856.txt");
|
965
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue856.html");
|
966
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
967
|
+
result = mtex2MML_output();
|
968
|
+
|
969
|
+
cl_assert_equal_s(fixture_mml, result);
|
970
|
+
}
|
971
|
+
|
972
|
+
void test_mathjax__issuesissue9011a(void)
|
973
|
+
{
|
974
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue901-1a.txt");
|
975
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue901-1a.html");
|
976
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
977
|
+
result = mtex2MML_output();
|
978
|
+
|
979
|
+
cl_assert_equal_s(fixture_mml, result);
|
980
|
+
}
|
981
|
+
|
982
|
+
void test_mathjax__issuesissue9011b(void)
|
983
|
+
{
|
984
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue901-1b.txt");
|
985
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue901-1b.html");
|
986
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
987
|
+
result = mtex2MML_output();
|
988
|
+
|
989
|
+
cl_assert_equal_s(fixture_mml, result);
|
990
|
+
}
|
991
|
+
|
992
|
+
void test_mathjax__issuesissue9011c(void)
|
993
|
+
{
|
994
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue901-1c.txt");
|
995
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue901-1c.html");
|
996
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
997
|
+
result = mtex2MML_output();
|
998
|
+
|
999
|
+
cl_assert_equal_s(fixture_mml, result);
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
void test_mathjax__issuesissue9011d(void)
|
1003
|
+
{
|
1004
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/issues/issue901-1d.txt");
|
1005
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/issues/issue901-1d.html");
|
1006
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1007
|
+
result = mtex2MML_output();
|
1008
|
+
|
1009
|
+
cl_assert_equal_s(fixture_mml, result);
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
void test_mathjax__layoutboxes1(void)
|
1013
|
+
{
|
1014
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/boxes-1.txt");
|
1015
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/boxes-1.html");
|
1016
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1017
|
+
result = mtex2MML_output();
|
1018
|
+
|
1019
|
+
cl_assert_equal_s(fixture_mml, result);
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
void test_mathjax__layoutkern1a(void)
|
1023
|
+
{
|
1024
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/kern-1a.txt");
|
1025
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/kern-1a.html");
|
1026
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1027
|
+
result = mtex2MML_output();
|
1028
|
+
|
1029
|
+
cl_assert_equal_s(fixture_mml, result);
|
1030
|
+
}
|
1031
|
+
|
1032
|
+
void test_mathjax__layoutkern1b(void)
|
1033
|
+
{
|
1034
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/kern-1b.txt");
|
1035
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/kern-1b.html");
|
1036
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1037
|
+
result = mtex2MML_output();
|
1038
|
+
|
1039
|
+
cl_assert_equal_s(fixture_mml, result);
|
1040
|
+
}
|
1041
|
+
|
1042
|
+
void test_mathjax__layoutllap1(void)
|
1043
|
+
{
|
1044
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/llap-1.txt");
|
1045
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/llap-1.html");
|
1046
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1047
|
+
result = mtex2MML_output();
|
1048
|
+
|
1049
|
+
cl_assert_equal_s(fixture_mml, result);
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
void test_mathjax__layoutlower1(void)
|
1053
|
+
{
|
1054
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/lower-1.txt");
|
1055
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/lower-1.html");
|
1056
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1057
|
+
result = mtex2MML_output();
|
1058
|
+
|
1059
|
+
cl_assert_equal_s(fixture_mml, result);
|
1060
|
+
}
|
1061
|
+
|
1062
|
+
void test_mathjax__layoutmathstrut1(void)
|
1063
|
+
{
|
1064
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/mathstrut-1.txt");
|
1065
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/mathstrut-1.html");
|
1066
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1067
|
+
result = mtex2MML_output();
|
1068
|
+
|
1069
|
+
cl_assert_equal_s(fixture_mml, result);
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
void test_mathjax__layoutmoveleft1(void)
|
1073
|
+
{
|
1074
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/moveleft-1.txt");
|
1075
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/moveleft-1.html");
|
1076
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1077
|
+
result = mtex2MML_output();
|
1078
|
+
|
1079
|
+
cl_assert_equal_s(fixture_mml, result);
|
1080
|
+
}
|
1081
|
+
|
1082
|
+
void test_mathjax__layoutmoveright1(void)
|
1083
|
+
{
|
1084
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/moveright-1.txt");
|
1085
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/moveright-1.html");
|
1086
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1087
|
+
result = mtex2MML_output();
|
1088
|
+
|
1089
|
+
cl_assert_equal_s(fixture_mml, result);
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
void test_mathjax__layoutnewline1(void)
|
1093
|
+
{
|
1094
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/newline-1.txt");
|
1095
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/newline-1.html");
|
1096
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1097
|
+
result = mtex2MML_output();
|
1098
|
+
|
1099
|
+
cl_assert_equal_s(fixture_mml, result);
|
1100
|
+
}
|
1101
|
+
|
1102
|
+
void test_mathjax__layoutphantom1(void)
|
1103
|
+
{
|
1104
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/phantom-1.txt");
|
1105
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/phantom-1.html");
|
1106
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1107
|
+
result = mtex2MML_output();
|
1108
|
+
|
1109
|
+
cl_assert_equal_s(fixture_mml, result);
|
1110
|
+
}
|
1111
|
+
|
1112
|
+
void test_mathjax__layoutraise1(void)
|
1113
|
+
{
|
1114
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/raise-1.txt");
|
1115
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/raise-1.html");
|
1116
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1117
|
+
result = mtex2MML_output();
|
1118
|
+
|
1119
|
+
cl_assert_equal_s(fixture_mml, result);
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
void test_mathjax__layoutrlap1(void)
|
1123
|
+
{
|
1124
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/rlap-1.txt");
|
1125
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/rlap-1.html");
|
1126
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1127
|
+
result = mtex2MML_output();
|
1128
|
+
|
1129
|
+
cl_assert_equal_s(fixture_mml, result);
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
void test_mathjax__layoutskip1a(void)
|
1133
|
+
{
|
1134
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/skip-1a.txt");
|
1135
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/skip-1a.html");
|
1136
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1137
|
+
result = mtex2MML_output();
|
1138
|
+
|
1139
|
+
cl_assert_equal_s(fixture_mml, result);
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
void test_mathjax__layoutskip1b(void)
|
1143
|
+
{
|
1144
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/skip-1b.txt");
|
1145
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/skip-1b.html");
|
1146
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1147
|
+
result = mtex2MML_output();
|
1148
|
+
|
1149
|
+
cl_assert_equal_s(fixture_mml, result);
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
void test_mathjax__layoutsmash1(void)
|
1153
|
+
{
|
1154
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/smash-1.txt");
|
1155
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/smash-1.html");
|
1156
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1157
|
+
result = mtex2MML_output();
|
1158
|
+
|
1159
|
+
cl_assert_equal_s(fixture_mml, result);
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
void test_mathjax__layoutspaces1(void)
|
1163
|
+
{
|
1164
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/spaces-1.txt");
|
1165
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/spaces-1.html");
|
1166
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1167
|
+
result = mtex2MML_output();
|
1168
|
+
|
1169
|
+
cl_assert_equal_s(fixture_mml, result);
|
1170
|
+
}
|
1171
|
+
|
1172
|
+
void test_mathjax__layoutstrut1(void)
|
1173
|
+
{
|
1174
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/strut-1.txt");
|
1175
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/strut-1.html");
|
1176
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1177
|
+
result = mtex2MML_output();
|
1178
|
+
|
1179
|
+
cl_assert_equal_s(fixture_mml, result);
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
void test_mathjax__layoutvcenter1(void)
|
1183
|
+
{
|
1184
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/layout/vcenter-1.txt");
|
1185
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/layout/vcenter-1.html");
|
1186
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1187
|
+
result = mtex2MML_output();
|
1188
|
+
|
1189
|
+
cl_assert_equal_s(fixture_mml, result);
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
void test_mathjax__lettersgreek1(void)
|
1193
|
+
{
|
1194
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/letters/greek-1.txt");
|
1195
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/letters/greek-1.html");
|
1196
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1197
|
+
result = mtex2MML_output();
|
1198
|
+
|
1199
|
+
cl_assert_equal_s(fixture_mml, result);
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
void test_mathjax__lettersgreek2(void)
|
1203
|
+
{
|
1204
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/letters/greek-2.txt");
|
1205
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/letters/greek-2.html");
|
1206
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1207
|
+
result = mtex2MML_output();
|
1208
|
+
|
1209
|
+
cl_assert_equal_s(fixture_mml, result);
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
void test_mathjax__lettersgreek3(void)
|
1213
|
+
{
|
1214
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/letters/greek-3.txt");
|
1215
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/letters/greek-3.html");
|
1216
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1217
|
+
result = mtex2MML_output();
|
1218
|
+
|
1219
|
+
cl_assert_equal_s(fixture_mml, result);
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
void test_mathjax__lettersgreek4(void)
|
1223
|
+
{
|
1224
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/letters/greek-4.txt");
|
1225
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/letters/greek-4.html");
|
1226
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1227
|
+
result = mtex2MML_output();
|
1228
|
+
|
1229
|
+
cl_assert_equal_s(fixture_mml, result);
|
1230
|
+
}
|
1231
|
+
|
1232
|
+
void test_mathjax__lettershebrew1(void)
|
1233
|
+
{
|
1234
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/letters/hebrew-1.txt");
|
1235
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/letters/hebrew-1.html");
|
1236
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1237
|
+
result = mtex2MML_output();
|
1238
|
+
|
1239
|
+
cl_assert_equal_s(fixture_mml, result);
|
1240
|
+
}
|
1241
|
+
|
1242
|
+
void test_mathjax__mathvariantBbb1(void)
|
1243
|
+
{
|
1244
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/Bbb-1.txt");
|
1245
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/Bbb-1.html");
|
1246
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1247
|
+
result = mtex2MML_output();
|
1248
|
+
|
1249
|
+
cl_assert_equal_s(fixture_mml, result);
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
void test_mathjax__mathvariantbf1(void)
|
1253
|
+
{
|
1254
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/bf-1.txt");
|
1255
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/bf-1.html");
|
1256
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1257
|
+
result = mtex2MML_output();
|
1258
|
+
|
1259
|
+
cl_assert_equal_s(fixture_mml, result);
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
void test_mathjax__mathvariantboldsymbol1(void)
|
1263
|
+
{
|
1264
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/boldsymbol-1.txt");
|
1265
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/boldsymbol-1.html");
|
1266
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1267
|
+
result = mtex2MML_output();
|
1268
|
+
|
1269
|
+
cl_assert_equal_s(fixture_mml, result);
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
void test_mathjax__mathvariantcal1(void)
|
1273
|
+
{
|
1274
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/cal-1.txt");
|
1275
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/cal-1.html");
|
1276
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1277
|
+
result = mtex2MML_output();
|
1278
|
+
|
1279
|
+
cl_assert_equal_s(fixture_mml, result);
|
1280
|
+
}
|
1281
|
+
|
1282
|
+
void test_mathjax__mathvariantfrak1(void)
|
1283
|
+
{
|
1284
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/frak-1.txt");
|
1285
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/frak-1.html");
|
1286
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1287
|
+
result = mtex2MML_output();
|
1288
|
+
|
1289
|
+
cl_assert_equal_s(fixture_mml, result);
|
1290
|
+
}
|
1291
|
+
|
1292
|
+
void test_mathjax__mathvariantit1(void)
|
1293
|
+
{
|
1294
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/it-1.txt");
|
1295
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/it-1.html");
|
1296
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1297
|
+
result = mtex2MML_output();
|
1298
|
+
|
1299
|
+
cl_assert_equal_s(fixture_mml, result);
|
1300
|
+
}
|
1301
|
+
|
1302
|
+
void test_mathjax__mathvariantmathbb1(void)
|
1303
|
+
{
|
1304
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathbb-1.txt");
|
1305
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathbb-1.html");
|
1306
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1307
|
+
result = mtex2MML_output();
|
1308
|
+
|
1309
|
+
cl_assert_equal_s(fixture_mml, result);
|
1310
|
+
}
|
1311
|
+
|
1312
|
+
void test_mathjax__mathvariantmathbf1a(void)
|
1313
|
+
{
|
1314
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathbf-1a.txt");
|
1315
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathbf-1a.html");
|
1316
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1317
|
+
result = mtex2MML_output();
|
1318
|
+
|
1319
|
+
cl_assert_equal_s(fixture_mml, result);
|
1320
|
+
}
|
1321
|
+
|
1322
|
+
void test_mathjax__mathvariantmathbf1b(void)
|
1323
|
+
{
|
1324
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathbf-1b.txt");
|
1325
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathbf-1b.html");
|
1326
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1327
|
+
result = mtex2MML_output();
|
1328
|
+
|
1329
|
+
cl_assert_equal_s(fixture_mml, result);
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
void test_mathjax__mathvariantmathbf2(void)
|
1333
|
+
{
|
1334
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathbf-2.txt");
|
1335
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathbf-2.html");
|
1336
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1337
|
+
result = mtex2MML_output();
|
1338
|
+
|
1339
|
+
cl_assert_equal_s(fixture_mml, result);
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
void test_mathjax__mathvariantmathcal1(void)
|
1343
|
+
{
|
1344
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathcal-1.txt");
|
1345
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathcal-1.html");
|
1346
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1347
|
+
result = mtex2MML_output();
|
1348
|
+
|
1349
|
+
cl_assert_equal_s(fixture_mml, result);
|
1350
|
+
}
|
1351
|
+
|
1352
|
+
void test_mathjax__mathvariantmathfrak1(void)
|
1353
|
+
{
|
1354
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathfrak-1.txt");
|
1355
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathfrak-1.html");
|
1356
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1357
|
+
result = mtex2MML_output();
|
1358
|
+
|
1359
|
+
cl_assert_equal_s(fixture_mml, result);
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
void test_mathjax__mathvariantmathit1(void)
|
1363
|
+
{
|
1364
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathit-1.txt");
|
1365
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathit-1.html");
|
1366
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1367
|
+
result = mtex2MML_output();
|
1368
|
+
|
1369
|
+
cl_assert_equal_s(fixture_mml, result);
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
void test_mathjax__mathvariantmathrm1(void)
|
1373
|
+
{
|
1374
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathrm-1.txt");
|
1375
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathrm-1.html");
|
1376
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1377
|
+
result = mtex2MML_output();
|
1378
|
+
|
1379
|
+
cl_assert_equal_s(fixture_mml, result);
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
void test_mathjax__mathvariantmathscr1(void)
|
1383
|
+
{
|
1384
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathscr-1.txt");
|
1385
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathscr-1.html");
|
1386
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1387
|
+
result = mtex2MML_output();
|
1388
|
+
|
1389
|
+
cl_assert_equal_s(fixture_mml, result);
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
void test_mathjax__mathvariantmathsf1(void)
|
1393
|
+
{
|
1394
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathsf-1.txt");
|
1395
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathsf-1.html");
|
1396
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1397
|
+
result = mtex2MML_output();
|
1398
|
+
|
1399
|
+
cl_assert_equal_s(fixture_mml, result);
|
1400
|
+
}
|
1401
|
+
|
1402
|
+
void test_mathjax__mathvariantmathtt1(void)
|
1403
|
+
{
|
1404
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mathtt-1.txt");
|
1405
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mathtt-1.html");
|
1406
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1407
|
+
result = mtex2MML_output();
|
1408
|
+
|
1409
|
+
cl_assert_equal_s(fixture_mml, result);
|
1410
|
+
}
|
1411
|
+
|
1412
|
+
void test_mathjax__mathvariantmit1(void)
|
1413
|
+
{
|
1414
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/mit-1.txt");
|
1415
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/mit-1.html");
|
1416
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1417
|
+
result = mtex2MML_output();
|
1418
|
+
|
1419
|
+
cl_assert_equal_s(fixture_mml, result);
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
void test_mathjax__mathvariantpmb1(void)
|
1423
|
+
{
|
1424
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/pmb-1.txt");
|
1425
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/pmb-1.html");
|
1426
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1427
|
+
result = mtex2MML_output();
|
1428
|
+
|
1429
|
+
cl_assert_equal_s(fixture_mml, result);
|
1430
|
+
}
|
1431
|
+
|
1432
|
+
void test_mathjax__mathvariantrm1(void)
|
1433
|
+
{
|
1434
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/rm-1.txt");
|
1435
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/rm-1.html");
|
1436
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1437
|
+
result = mtex2MML_output();
|
1438
|
+
|
1439
|
+
cl_assert_equal_s(fixture_mml, result);
|
1440
|
+
}
|
1441
|
+
|
1442
|
+
void test_mathjax__mathvariantscr1(void)
|
1443
|
+
{
|
1444
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/scr-1.txt");
|
1445
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/scr-1.html");
|
1446
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1447
|
+
result = mtex2MML_output();
|
1448
|
+
|
1449
|
+
cl_assert_equal_s(fixture_mml, result);
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
void test_mathjax__mathvariantsf1(void)
|
1453
|
+
{
|
1454
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/sf-1.txt");
|
1455
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/sf-1.html");
|
1456
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1457
|
+
result = mtex2MML_output();
|
1458
|
+
|
1459
|
+
cl_assert_equal_s(fixture_mml, result);
|
1460
|
+
}
|
1461
|
+
|
1462
|
+
void test_mathjax__mathvarianttext1(void)
|
1463
|
+
{
|
1464
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/text-1.txt");
|
1465
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/text-1.html");
|
1466
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1467
|
+
result = mtex2MML_output();
|
1468
|
+
|
1469
|
+
cl_assert_equal_s(fixture_mml, result);
|
1470
|
+
}
|
1471
|
+
|
1472
|
+
void test_mathjax__mathvarianttextbf1(void)
|
1473
|
+
{
|
1474
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/textbf-1.txt");
|
1475
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/textbf-1.html");
|
1476
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1477
|
+
result = mtex2MML_output();
|
1478
|
+
|
1479
|
+
cl_assert_equal_s(fixture_mml, result);
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
void test_mathjax__mathvarianttextit1(void)
|
1483
|
+
{
|
1484
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/textit-1.txt");
|
1485
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/textit-1.html");
|
1486
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1487
|
+
result = mtex2MML_output();
|
1488
|
+
|
1489
|
+
cl_assert_equal_s(fixture_mml, result);
|
1490
|
+
}
|
1491
|
+
|
1492
|
+
void test_mathjax__mathvarianttextrm1(void)
|
1493
|
+
{
|
1494
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/textrm-1.txt");
|
1495
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/textrm-1.html");
|
1496
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1497
|
+
result = mtex2MML_output();
|
1498
|
+
|
1499
|
+
cl_assert_equal_s(fixture_mml, result);
|
1500
|
+
}
|
1501
|
+
|
1502
|
+
void test_mathjax__mathvarianttextsf1(void)
|
1503
|
+
{
|
1504
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/textsf-1.txt");
|
1505
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/textsf-1.html");
|
1506
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1507
|
+
result = mtex2MML_output();
|
1508
|
+
|
1509
|
+
cl_assert_equal_s(fixture_mml, result);
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
void test_mathjax__mathvarianttexttt1(void)
|
1513
|
+
{
|
1514
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/texttt-1.txt");
|
1515
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/texttt-1.html");
|
1516
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1517
|
+
result = mtex2MML_output();
|
1518
|
+
|
1519
|
+
cl_assert_equal_s(fixture_mml, result);
|
1520
|
+
}
|
1521
|
+
|
1522
|
+
void test_mathjax__mathvarianttt1(void)
|
1523
|
+
{
|
1524
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/mathvariant/tt-1.txt");
|
1525
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/mathvariant/tt-1.html");
|
1526
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1527
|
+
result = mtex2MML_output();
|
1528
|
+
|
1529
|
+
cl_assert_equal_s(fixture_mml, result);
|
1530
|
+
}
|
1531
|
+
|
1532
|
+
void test_mathjax__matricesarray1a(void)
|
1533
|
+
{
|
1534
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/array-1a.txt");
|
1535
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/array-1a.html");
|
1536
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1537
|
+
result = mtex2MML_output();
|
1538
|
+
|
1539
|
+
cl_assert_equal_s(fixture_mml, result);
|
1540
|
+
}
|
1541
|
+
|
1542
|
+
void test_mathjax__matricesarray1b(void)
|
1543
|
+
{
|
1544
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/array-1b.txt");
|
1545
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/array-1b.html");
|
1546
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1547
|
+
result = mtex2MML_output();
|
1548
|
+
|
1549
|
+
cl_assert_equal_s(fixture_mml, result);
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
void test_mathjax__matricesarray2(void)
|
1553
|
+
{
|
1554
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/array-2.txt");
|
1555
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/array-2.html");
|
1556
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1557
|
+
result = mtex2MML_output();
|
1558
|
+
|
1559
|
+
cl_assert_equal_s(fixture_mml, result);
|
1560
|
+
}
|
1561
|
+
|
1562
|
+
void test_mathjax__matricesarray3(void)
|
1563
|
+
{
|
1564
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/array-3.txt");
|
1565
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/array-3.html");
|
1566
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1567
|
+
result = mtex2MML_output();
|
1568
|
+
|
1569
|
+
cl_assert_equal_s(fixture_mml, result);
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
void test_mathjax__matricesbmatrix1(void)
|
1573
|
+
{
|
1574
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/bmatrix-1.txt");
|
1575
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/bmatrix-1.html");
|
1576
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1577
|
+
result = mtex2MML_output();
|
1578
|
+
|
1579
|
+
cl_assert_equal_s(fixture_mml, result);
|
1580
|
+
}
|
1581
|
+
|
1582
|
+
void test_mathjax__matricesbmatrix2(void)
|
1583
|
+
{
|
1584
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/bmatrix-2.txt");
|
1585
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/bmatrix-2.html");
|
1586
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1587
|
+
result = mtex2MML_output();
|
1588
|
+
|
1589
|
+
cl_assert_equal_s(fixture_mml, result);
|
1590
|
+
}
|
1591
|
+
|
1592
|
+
void test_mathjax__matricesmatrix1(void)
|
1593
|
+
{
|
1594
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/matrix-1.txt");
|
1595
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/matrix-1.html");
|
1596
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1597
|
+
result = mtex2MML_output();
|
1598
|
+
|
1599
|
+
cl_assert_equal_s(fixture_mml, result);
|
1600
|
+
}
|
1601
|
+
|
1602
|
+
void test_mathjax__matricesmatrix2(void)
|
1603
|
+
{
|
1604
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/matrix-2.txt");
|
1605
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/matrix-2.html");
|
1606
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1607
|
+
result = mtex2MML_output();
|
1608
|
+
|
1609
|
+
cl_assert_equal_s(fixture_mml, result);
|
1610
|
+
}
|
1611
|
+
|
1612
|
+
void test_mathjax__matricespmatrix1(void)
|
1613
|
+
{
|
1614
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/pmatrix-1.txt");
|
1615
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/pmatrix-1.html");
|
1616
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1617
|
+
result = mtex2MML_output();
|
1618
|
+
|
1619
|
+
cl_assert_equal_s(fixture_mml, result);
|
1620
|
+
}
|
1621
|
+
|
1622
|
+
void test_mathjax__matricespmatrix2(void)
|
1623
|
+
{
|
1624
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/pmatrix-2.txt");
|
1625
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/pmatrix-2.html");
|
1626
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1627
|
+
result = mtex2MML_output();
|
1628
|
+
|
1629
|
+
cl_assert_equal_s(fixture_mml, result);
|
1630
|
+
}
|
1631
|
+
|
1632
|
+
void test_mathjax__matricessmallmatrix1(void)
|
1633
|
+
{
|
1634
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/smallmatrix-1.txt");
|
1635
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/smallmatrix-1.html");
|
1636
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1637
|
+
result = mtex2MML_output();
|
1638
|
+
|
1639
|
+
cl_assert_equal_s(fixture_mml, result);
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
void test_mathjax__matricesvmatrix1(void)
|
1643
|
+
{
|
1644
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/vmatrix-1.txt");
|
1645
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/vmatrix-1.html");
|
1646
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1647
|
+
result = mtex2MML_output();
|
1648
|
+
|
1649
|
+
cl_assert_equal_s(fixture_mml, result);
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
void test_mathjax__matricesvmatrix2(void)
|
1653
|
+
{
|
1654
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/matrices/vmatrix-2.txt");
|
1655
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/matrices/vmatrix-2.html");
|
1656
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1657
|
+
result = mtex2MML_output();
|
1658
|
+
|
1659
|
+
cl_assert_equal_s(fixture_mml, result);
|
1660
|
+
}
|
1661
|
+
|
1662
|
+
void test_mathjax__nonstandardTiny1(void)
|
1663
|
+
{
|
1664
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/non-standard/Tiny-1.txt");
|
1665
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/non-standard/Tiny-1.html");
|
1666
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1667
|
+
result = mtex2MML_output();
|
1668
|
+
|
1669
|
+
cl_assert_equal_s(fixture_mml, result);
|
1670
|
+
}
|
1671
|
+
|
1672
|
+
void test_mathjax__otherbbox1(void)
|
1673
|
+
{
|
1674
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/bbox-1.txt");
|
1675
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/bbox-1.html");
|
1676
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1677
|
+
result = mtex2MML_output();
|
1678
|
+
|
1679
|
+
cl_assert_equal_s(fixture_mml, result);
|
1680
|
+
}
|
1681
|
+
|
1682
|
+
void test_mathjax__otherboxed1(void)
|
1683
|
+
{
|
1684
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/boxed-1.txt");
|
1685
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/boxed-1.html");
|
1686
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1687
|
+
result = mtex2MML_output();
|
1688
|
+
|
1689
|
+
cl_assert_equal_s(fixture_mml, result);
|
1690
|
+
}
|
1691
|
+
|
1692
|
+
void test_mathjax__othercancel1(void)
|
1693
|
+
{
|
1694
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/cancel-1.txt");
|
1695
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/cancel-1.html");
|
1696
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1697
|
+
result = mtex2MML_output();
|
1698
|
+
|
1699
|
+
cl_assert_equal_s(fixture_mml, result);
|
1700
|
+
}
|
1701
|
+
|
1702
|
+
void test_mathjax__othercases1(void)
|
1703
|
+
{
|
1704
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/cases-1.txt");
|
1705
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/cases-1.html");
|
1706
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1707
|
+
result = mtex2MML_output();
|
1708
|
+
|
1709
|
+
cl_assert_equal_s(fixture_mml, result);
|
1710
|
+
}
|
1711
|
+
|
1712
|
+
void test_mathjax__otherenclose1(void)
|
1713
|
+
{
|
1714
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/enclose-1.txt");
|
1715
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/enclose-1.html");
|
1716
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1717
|
+
result = mtex2MML_output();
|
1718
|
+
|
1719
|
+
cl_assert_equal_s(fixture_mml, result);
|
1720
|
+
}
|
1721
|
+
|
1722
|
+
void test_mathjax__otherfunctions1(void)
|
1723
|
+
{
|
1724
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/functions-1.txt");
|
1725
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/functions-1.html");
|
1726
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1727
|
+
result = mtex2MML_output();
|
1728
|
+
|
1729
|
+
cl_assert_equal_s(fixture_mml, result);
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
void test_mathjax__otherLaTeX1(void)
|
1733
|
+
{
|
1734
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/LaTeX-1.txt");
|
1735
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/LaTeX-1.html");
|
1736
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1737
|
+
result = mtex2MML_output();
|
1738
|
+
|
1739
|
+
cl_assert_equal_s(fixture_mml, result);
|
1740
|
+
}
|
1741
|
+
|
1742
|
+
void test_mathjax__otherlimits1(void)
|
1743
|
+
{
|
1744
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/limits-1.txt");
|
1745
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/limits-1.html");
|
1746
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1747
|
+
result = mtex2MML_output();
|
1748
|
+
|
1749
|
+
cl_assert_equal_s(fixture_mml, result);
|
1750
|
+
}
|
1751
|
+
|
1752
|
+
void test_mathjax__otherlimits2(void)
|
1753
|
+
{
|
1754
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/limits-2.txt");
|
1755
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/limits-2.html");
|
1756
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1757
|
+
result = mtex2MML_output();
|
1758
|
+
|
1759
|
+
cl_assert_equal_s(fixture_mml, result);
|
1760
|
+
}
|
1761
|
+
|
1762
|
+
void test_mathjax__otherlimits3(void)
|
1763
|
+
{
|
1764
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/limits-3.txt");
|
1765
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/limits-3.html");
|
1766
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1767
|
+
result = mtex2MML_output();
|
1768
|
+
|
1769
|
+
cl_assert_equal_s(fixture_mml, result);
|
1770
|
+
}
|
1771
|
+
|
1772
|
+
void test_mathjax__othermathsize1(void)
|
1773
|
+
{
|
1774
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/mathsize-1.txt");
|
1775
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/mathsize-1.html");
|
1776
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1777
|
+
result = mtex2MML_output();
|
1778
|
+
|
1779
|
+
cl_assert_equal_s(fixture_mml, result);
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
void test_mathjax__othermod1(void)
|
1783
|
+
{
|
1784
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/mod-1.txt");
|
1785
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/mod-1.html");
|
1786
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1787
|
+
result = mtex2MML_output();
|
1788
|
+
|
1789
|
+
cl_assert_equal_s(fixture_mml, result);
|
1790
|
+
}
|
1791
|
+
|
1792
|
+
void test_mathjax__othernot1(void)
|
1793
|
+
{
|
1794
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/not-1.txt");
|
1795
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/not-1.html");
|
1796
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1797
|
+
result = mtex2MML_output();
|
1798
|
+
|
1799
|
+
cl_assert_equal_s(fixture_mml, result);
|
1800
|
+
}
|
1801
|
+
|
1802
|
+
void test_mathjax__otherpod1(void)
|
1803
|
+
{
|
1804
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/pod-1.txt");
|
1805
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/pod-1.html");
|
1806
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1807
|
+
result = mtex2MML_output();
|
1808
|
+
|
1809
|
+
cl_assert_equal_s(fixture_mml, result);
|
1810
|
+
}
|
1811
|
+
|
1812
|
+
void test_mathjax__otherprimes1(void)
|
1813
|
+
{
|
1814
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/primes-1.txt");
|
1815
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/primes-1.html");
|
1816
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1817
|
+
result = mtex2MML_output();
|
1818
|
+
|
1819
|
+
cl_assert_equal_s(fixture_mml, result);
|
1820
|
+
}
|
1821
|
+
|
1822
|
+
void test_mathjax__otherprimes2(void)
|
1823
|
+
{
|
1824
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/primes-2.txt");
|
1825
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/primes-2.html");
|
1826
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1827
|
+
result = mtex2MML_output();
|
1828
|
+
|
1829
|
+
cl_assert_equal_s(fixture_mml, result);
|
1830
|
+
}
|
1831
|
+
|
1832
|
+
void test_mathjax__otherprimes3(void)
|
1833
|
+
{
|
1834
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/primes-3.txt");
|
1835
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/primes-3.html");
|
1836
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1837
|
+
result = mtex2MML_output();
|
1838
|
+
|
1839
|
+
cl_assert_equal_s(fixture_mml, result);
|
1840
|
+
}
|
1841
|
+
|
1842
|
+
void test_mathjax__otherstyle1(void)
|
1843
|
+
{
|
1844
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/style-1.txt");
|
1845
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/style-1.html");
|
1846
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1847
|
+
result = mtex2MML_output();
|
1848
|
+
|
1849
|
+
cl_assert_equal_s(fixture_mml, result);
|
1850
|
+
}
|
1851
|
+
|
1852
|
+
void test_mathjax__otherverb1(void)
|
1853
|
+
{
|
1854
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/verb-1.txt");
|
1855
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/verb-1.html");
|
1856
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1857
|
+
result = mtex2MML_output();
|
1858
|
+
|
1859
|
+
cl_assert_equal_s(fixture_mml, result);
|
1860
|
+
}
|
1861
|
+
|
1862
|
+
void test_mathjax__otherverb2(void)
|
1863
|
+
{
|
1864
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/other/verb-2.txt");
|
1865
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/other/verb-2.html");
|
1866
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1867
|
+
result = mtex2MML_output();
|
1868
|
+
|
1869
|
+
cl_assert_equal_s(fixture_mml, result);
|
1870
|
+
}
|
1871
|
+
|
1872
|
+
void test_mathjax__rootsroot1(void)
|
1873
|
+
{
|
1874
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/roots/root-1.txt");
|
1875
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/roots/root-1.html");
|
1876
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1877
|
+
result = mtex2MML_output();
|
1878
|
+
|
1879
|
+
cl_assert_equal_s(fixture_mml, result);
|
1880
|
+
}
|
1881
|
+
|
1882
|
+
void test_mathjax__rootsroot2(void)
|
1883
|
+
{
|
1884
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/roots/root-2.txt");
|
1885
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/roots/root-2.html");
|
1886
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1887
|
+
result = mtex2MML_output();
|
1888
|
+
|
1889
|
+
cl_assert_equal_s(fixture_mml, result);
|
1890
|
+
}
|
1891
|
+
|
1892
|
+
void test_mathjax__rootsroot3(void)
|
1893
|
+
{
|
1894
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/roots/root-3.txt");
|
1895
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/roots/root-3.html");
|
1896
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1897
|
+
result = mtex2MML_output();
|
1898
|
+
|
1899
|
+
cl_assert_equal_s(fixture_mml, result);
|
1900
|
+
}
|
1901
|
+
|
1902
|
+
void test_mathjax__rootssqrt1(void)
|
1903
|
+
{
|
1904
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/roots/sqrt-1.txt");
|
1905
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/roots/sqrt-1.html");
|
1906
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1907
|
+
result = mtex2MML_output();
|
1908
|
+
|
1909
|
+
cl_assert_equal_s(fixture_mml, result);
|
1910
|
+
}
|
1911
|
+
|
1912
|
+
void test_mathjax__rootssqrt2(void)
|
1913
|
+
{
|
1914
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/roots/sqrt-2.txt");
|
1915
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/roots/sqrt-2.html");
|
1916
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1917
|
+
result = mtex2MML_output();
|
1918
|
+
|
1919
|
+
cl_assert_equal_s(fixture_mml, result);
|
1920
|
+
}
|
1921
|
+
|
1922
|
+
void test_mathjax__symbolsbinaryops1(void)
|
1923
|
+
{
|
1924
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/binaryops-1.txt");
|
1925
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/binaryops-1.html");
|
1926
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1927
|
+
result = mtex2MML_output();
|
1928
|
+
|
1929
|
+
cl_assert_equal_s(fixture_mml, result);
|
1930
|
+
}
|
1931
|
+
|
1932
|
+
void test_mathjax__symbolsdots1(void)
|
1933
|
+
{
|
1934
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/dots-1.txt");
|
1935
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/dots-1.html");
|
1936
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1937
|
+
result = mtex2MML_output();
|
1938
|
+
|
1939
|
+
cl_assert_equal_s(fixture_mml, result);
|
1940
|
+
}
|
1941
|
+
|
1942
|
+
void test_mathjax__symbolslargeops1(void)
|
1943
|
+
{
|
1944
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/largeops-1.txt");
|
1945
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/largeops-1.html");
|
1946
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1947
|
+
result = mtex2MML_output();
|
1948
|
+
|
1949
|
+
cl_assert_equal_s(fixture_mml, result);
|
1950
|
+
}
|
1951
|
+
|
1952
|
+
void test_mathjax__symbolslargeops2(void)
|
1953
|
+
{
|
1954
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/largeops-2.txt");
|
1955
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/largeops-2.html");
|
1956
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1957
|
+
result = mtex2MML_output();
|
1958
|
+
|
1959
|
+
cl_assert_equal_s(fixture_mml, result);
|
1960
|
+
}
|
1961
|
+
|
1962
|
+
void test_mathjax__symbolsrelations1(void)
|
1963
|
+
{
|
1964
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/relations-1.txt");
|
1965
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/relations-1.html");
|
1966
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1967
|
+
result = mtex2MML_output();
|
1968
|
+
|
1969
|
+
cl_assert_equal_s(fixture_mml, result);
|
1970
|
+
}
|
1971
|
+
|
1972
|
+
void test_mathjax__symbolssymbols1(void)
|
1973
|
+
{
|
1974
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/symbols-1.txt");
|
1975
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/symbols-1.html");
|
1976
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1977
|
+
result = mtex2MML_output();
|
1978
|
+
|
1979
|
+
cl_assert_equal_s(fixture_mml, result);
|
1980
|
+
}
|
1981
|
+
|
1982
|
+
void test_mathjax__symbolssymbols2(void)
|
1983
|
+
{
|
1984
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/symbols-2.txt");
|
1985
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/symbols-2.html");
|
1986
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1987
|
+
result = mtex2MML_output();
|
1988
|
+
|
1989
|
+
cl_assert_equal_s(fixture_mml, result);
|
1990
|
+
}
|
1991
|
+
|
1992
|
+
void test_mathjax__symbolssymbols3(void)
|
1993
|
+
{
|
1994
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/symbols-3.txt");
|
1995
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/symbols-3.html");
|
1996
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
1997
|
+
result = mtex2MML_output();
|
1998
|
+
|
1999
|
+
cl_assert_equal_s(fixture_mml, result);
|
2000
|
+
}
|
2001
|
+
|
2002
|
+
void test_mathjax__symbolssymbols4(void)
|
2003
|
+
{
|
2004
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/symbols-4.txt");
|
2005
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/symbols-4.html");
|
2006
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
2007
|
+
result = mtex2MML_output();
|
2008
|
+
|
2009
|
+
cl_assert_equal_s(fixture_mml, result);
|
2010
|
+
}
|
2011
|
+
|
2012
|
+
void test_mathjax__symbolssymbols5(void)
|
2013
|
+
{
|
2014
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/symbols-5.txt");
|
2015
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/symbols-5.html");
|
2016
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
2017
|
+
result = mtex2MML_output();
|
2018
|
+
|
2019
|
+
cl_assert_equal_s(fixture_mml, result);
|
2020
|
+
}
|
2021
|
+
|
2022
|
+
void test_mathjax__symbolssymbols6(void)
|
2023
|
+
{
|
2024
|
+
fixture_tex = read_fixture_tex("MathJax/LaTeXToMathML-tex/symbols/symbols-6.txt");
|
2025
|
+
fixture_mml = read_fixture_mml("MathJax/LaTeXToMathML-out/symbols/symbols-6.html");
|
2026
|
+
mtex2MML_filter(fixture_tex, strlen(fixture_tex));
|
2027
|
+
result = mtex2MML_output();
|
2028
|
+
|
2029
|
+
cl_assert_equal_s(fixture_mml, result);
|
2030
|
+
}
|