aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch')
-rw-r--r--community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch b/community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch
new file mode 100644
index 0000000000..29576ed992
--- /dev/null
+++ b/community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch
@@ -0,0 +1,17 @@
+Remove assert that fails on 32 bit arch.
+
+Upstream-Issue: https://github.com/gjtorikian/mathematical/issues/72
+--- a/test/mathematical/maliciousness_test.rb
++++ b/test/mathematical/maliciousness_test.rb
+@@ -57,11 +57,6 @@
+ output = render.render '$a \ne b$'
+ assert_equal output[:data], '$a \ne b$'
+ assert_equal output[:exception].class, Mathematical::MaxsizeError
+-
+- assert_raises RangeError do
+- render = Mathematical.new({ :maxsize => 4_294_967_295 }) # unsigned long max
+- render.render('$a \ne b$')
+- end
+ end
+
+ def test_it_does_not_blow_up_on_bad_input