Update Tests for Latest itex2MML

In particular, we (going forward) will have a unit test which
will determine whether the latest itex2MML is installed.
This commit is contained in:
Jacques Distler 2009-03-08 23:29:06 -05:00
parent 9f2cb8bbe5
commit 79be69c910
2 changed files with 12 additions and 0 deletions

View file

@ -964,6 +964,8 @@ class WikiControllerTest < ActionController::TestCase
\re@DeclareMathSymbol{\Perp}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\Vbar}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\sslash}{\mathrel}{stmry}{12}
\re@DeclareMathSymbol{\invamp}{\mathrel}{symbolsC}{77}
\re@DeclareMathSymbol{\parr}{\mathrel}{symbolsC}{77}
\makeatother
% Widecheck

View file

@ -207,6 +207,16 @@ END_THM
end
def test_have_latest_itex2mml
# set_web_property :markup, :markdownMML
assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' } +
%{display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>} +
%{<mi>A</mi><mo>\342\205\213</mo><mi>B</mi></math></p>},
"equation $A \\invamp B$")
end
def test_markdown_hyperlink_with_slash
# in response to a bug, see http://dev.instiki.org/attachment/ticket/177
set_web_property :markup, :markdown