summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-01-23 02:07:05 -0700
committerDan Allen <dan.j.allen@gmail.com>2019-01-23 02:07:05 -0700
commitcd7e944abe1a95f03d0181746445409ffa9a4d79 (patch)
tree020fc447b6d09ef4dff84f157fd3e22147ad318e
parent99a47b711165e591b4517e018ab2607723d78898 (diff)
remove workarounds for asciimath tests on truffleruby
-rw-r--r--test/blocks_test.rb2
-rw-r--r--test/substitutions_test.rb3
2 files changed, 1 insertions, 4 deletions
diff --git a/test/blocks_test.rb b/test/blocks_test.rb
index c1c046a0..e8cbc2db 100644
--- a/test/blocks_test.rb
+++ b/test/blocks_test.rb
@@ -1721,8 +1721,6 @@ x+b/(2a)<+-sqrt((b^2)/(4a^2)-c/a)
doc = document_from_string input, backend: :docbook, header_footer: false
actual = doc.convert
if asciimath_available
- # FIXME character references are being double escaped in truffleruby
- actual = actual.gsub '&amp;', '&' if RUBY_ENGINE == 'truffleruby'
assert_equal expect, actual.strip
assert_equal :loaded, doc.converter.instance_variable_get(:@asciimath)
else
diff --git a/test/substitutions_test.rb b/test/substitutions_test.rb
index cf58a7fd..348c0143 100644
--- a/test/substitutions_test.rb
+++ b/test/substitutions_test.rb
@@ -1701,8 +1701,7 @@ EOS
test 'should convert contents of asciimath macro to MathML in DocBook output if asciimath gem is available' do
asciimath_available = !(Asciidoctor::Helpers.require_library 'asciimath', true, :ignore).nil?
- # NOTE truffleruby fails if input equation contains spaces
- input = 'asciimath:[a<b]'
+ input = 'asciimath:[a < b]'
expected = '<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>a</mml:mi><mml:mo>&lt;</mml:mo><mml:mi>b</mml:mi></mml:math></inlineequation>'
using_memory_logger do |logger|
para = block_from_string input, backend: :docbook