Sha256: ef322ea0507bae1fbd5c3e88a1164184b65061afd3f54479a8d5178a27cf4337
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
require "spec_helper" RSpec.describe MathML2AsciiMath do it "processes some MathML" do expect(MathML2AsciiMath.m2a(<<~INPUT)).to match_fuzzy <<~OUTPUT <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>a</mi> <mo>⋄</mo> <msup><mi>x</mi><mn>2</mn></msup> <mo>+</mo><mi>b</mi><mo>×</mo><mi>x</mi> <mo>+</mo><mi>c</mi> </mrow> </math> INPUT a diamond x^2\n + b xx x\n + c OUTPUT end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mathml2asciimath-0.0.3 | spec/mathml_spec.rb |
mathml2asciimath-0.0.2 | spec/mathml_spec.rb |