Sha256: c00f0cb8e3afe6f97a426d28b8f62167e7e4c6dad9b2314b31ec3e6ed0c0f32a

Contents?: true

Size: 573 Bytes

Versions: 20

Compression:

Stored size: 573 Bytes

Contents

require 'test_helper'

class Mathematical::MathMLTest < MiniTest::Test

  def test_it_returns_mathml
    string = '''
    $$
\begin{pmatrix}
     1 & a_1 & a_1^2 & \cdots & a_1^n \\\\
     1 & a_2 & a_2^2 & \cdots & a_2^n \\\\
     \vdots  & \vdots& \vdots & \ddots & \vdots \\\\
     1 & a_m & a_m^2 & \cdots & a_m^n
     \end{pmatrix}
$$
'''
    render = Mathematical.new({:format => :mathml})
    mathml = render.render(string)[:data]

    assert_match %r{<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><semantics><mrow><mrow><mo>\(}, mathml
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mathematical-1.6.14 test/mathematical/mathml_test.rb
mathematical-1.6.13 test/mathematical/mathml_test.rb
mathematical-1.6.12 test/mathematical/mathml_test.rb
mathematical-1.6.11 test/mathematical/mathml_test.rb
mathematical-1.6.10 test/mathematical/mathml_test.rb
mathematical-1.6.9 test/mathematical/mathml_test.rb
mathematical-1.6.8 test/mathematical/mathml_test.rb
mathematical-1.6.7 test/mathematical/mathml_test.rb
mathematical-1.6.6 test/mathematical/mathml_test.rb
mathematical-1.6.5 test/mathematical/mathml_test.rb
mathematical-1.6.4 test/mathematical/mathml_test.rb
mathematical-1.6.3 test/mathematical/mathml_test.rb
mathematical-1.6.2 test/mathematical/mathml_test.rb
mathematical-1.6.1 test/mathematical/mathml_test.rb
mathematical-1.6.0 test/mathematical/mathml_test.rb
mathematical-1.5.12 test/mathematical/mathml_test.rb
mathematical-1.5.0 test/mathematical/mathml_test.rb
mathematical-1.4.2 test/mathematical/mathml_test.rb
mathematical-1.4.1 test/mathematical/mathml_test.rb
mathematical-1.4.0 test/mathematical/mathml_test.rb