Sha256: 30b8b0a8607a17edf794b578a0b923513a80990076c9013b2b0888bff4f9ac56

Contents?: true

Size: 354 Bytes

Versions: 20

Compression:

Stored size: 354 Bytes

Contents

require 'test_helper'

class Mathematical::CorrectionsTest < MiniTest::Test

  def setup
    @render = Mathematical.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

20 entries across 20 versions & 1 rubygems

Version Path
mathematical-1.6.14 test/mathematical/corrections_test.rb
mathematical-1.6.13 test/mathematical/corrections_test.rb
mathematical-1.6.12 test/mathematical/corrections_test.rb
mathematical-1.6.11 test/mathematical/corrections_test.rb
mathematical-1.6.10 test/mathematical/corrections_test.rb
mathematical-1.6.9 test/mathematical/corrections_test.rb
mathematical-1.6.8 test/mathematical/corrections_test.rb
mathematical-1.6.7 test/mathematical/corrections_test.rb
mathematical-1.6.6 test/mathematical/corrections_test.rb
mathematical-1.6.5 test/mathematical/corrections_test.rb
mathematical-1.6.4 test/mathematical/corrections_test.rb
mathematical-1.6.3 test/mathematical/corrections_test.rb
mathematical-1.6.2 test/mathematical/corrections_test.rb
mathematical-1.6.1 test/mathematical/corrections_test.rb
mathematical-1.6.0 test/mathematical/corrections_test.rb
mathematical-1.5.12 test/mathematical/corrections_test.rb
mathematical-1.5.0 test/mathematical/corrections_test.rb
mathematical-1.4.2 test/mathematical/corrections_test.rb
mathematical-1.4.1 test/mathematical/corrections_test.rb
mathematical-1.4.0 test/mathematical/corrections_test.rb