Show More
@@ -0,0 +1,27 b'' | |||||
|
1 | import io | |||
|
2 | import nose.tools as nt | |||
|
3 | from nose.tools import nottest | |||
|
4 | ||||
|
5 | from converters import latex_transformer | |||
|
6 | lt = latex_transformer.LatexTransformer() | |||
|
7 | lt.enabled = True | |||
|
8 | ||||
|
9 | @nottest | |||
|
10 | def test_space(input, reference): | |||
|
11 | nt.assert_equal(lt.remove_math_space(input),reference) | |||
|
12 | ||||
|
13 | ||||
|
14 | ||||
|
15 | def test_evens(): | |||
|
16 | references = [ | |||
|
17 | ('$e$','$e$'), | |||
|
18 | ('$ e $','$e$'), | |||
|
19 | ('xxx$e^i$yyy','xxx$e^i$yyy'), | |||
|
20 | ('xxx$ e^i $yyy','xxx$e^i$yyy'), | |||
|
21 | ('xxx$e^i $yyy','xxx$e^i$yyy'), | |||
|
22 | ('xxx$ e^i$yyy','xxx$e^i$yyy'), | |||
|
23 | ('\$ e $ e $','\$ e $e$'), | |||
|
24 | ] | |||
|
25 | ||||
|
26 | for k,v in references : | |||
|
27 | yield test_space, k,v |
General Comments 0
You need to be logged in to leave comments.
Login now