File: math_ml_spec.rb

package info (click to toggle)
ruby-mathml 0.14-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 412 kB
  • ctags: 236
  • sloc: ruby: 9,833; makefile: 10
file content (14 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "math_ml"

describe MathML do
	it "should not raise error when math_ml.rb is required twice" do
		if require("math_ml")
			lambda{MathML::LaTeX::Parser.new}.should_not raise_error
		end
	end

	it ".pcstring" do
		MathML.pcstring('<>&"\'').to_s.should == "&lt;&gt;&amp;&quot;&apos;"
		MathML.pcstring('<tag>&amp;"\'</tag>', true).to_s.should == '<tag>&amp;"\'</tag>'
	end
end