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