Sha256: 3eb122fe2e587c48c3064102c776f07c6817bf6ed72ff612ca8ce27f3c686727

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

require "test_helper"

class Mathematical::CorrectionsTest < Test::Unit::TestCase

  def setup
    @render = Mathematical::Render.new
  end

  def test_adjust_lt_gt
    simple_lt = '$|q| < 1$'
    assert_match /|q| \\lt 1/, @render.apply_corrections(simple_lt)

    simple_gt = '$|q| > 1$'
    assert_match /|q| \\gt 1/, @render.apply_corrections(simple_gt)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mathematical-0.6.2 test/mathematical/corrections_test.rb
mathematical-0.6.1 test/mathematical/corrections_test.rb
mathematical-0.6.0 test/mathematical/corrections_test.rb