Sha256: 9effcb18b9f8f3acc56e3ab859216ba8a7ccc1aad58bc72b04ddba0b150e16bf
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 Bytes
Contents
require "test_helper" class Mathematical::BasicTest < MiniTest::Test def test_it_has_a_version assert Mathematical::VERSION end def test_multiple_calls render = Mathematical.new render.render('$\pi$') output = render.render('$\pi$')[:data] assert_equal 1, output.scan(/<svg/).size, 'should only contain one svg' end def test_handles_line_breaks s = "$$x\ny$$" render = Mathematical.new output = render.render(s)[:data] assert_equal 1, output.scan(/<svg/).size, 'should only contain one svg' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mathematical-1.3.0 | test/mathematical/basic_test.rb |
mathematical-1.2.2 | test/mathematical/basic_test.rb |
mathematical-1.2.1 | test/mathematical/basic_test.rb |