From 79be69c9103e15c9a03f40e0c6dddd3c71df0579 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sun, 8 Mar 2009 23:29:06 -0500 Subject: [PATCH] Update Tests for Latest itex2MML In particular, we (going forward) will have a unit test which will determine whether the latest itex2MML is installed. --- test/functional/wiki_controller_test.rb | 2 ++ test/unit/page_renderer_test.rb | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 4b816c6e..5ccbf6c5 100755 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -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 diff --git a/test/unit/page_renderer_test.rb b/test/unit/page_renderer_test.rb index 54b2480f..51c8be32 100644 --- a/test/unit/page_renderer_test.rb +++ b/test/unit/page_renderer_test.rb @@ -207,6 +207,16 @@ END_THM end + def test_have_latest_itex2mml +# set_web_property :markup, :markdownMML + + assert_markup_parsed_as( + %{

equation } + + %{A\342\205\213B

}, + "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