diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-29 00:42:51 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-29 00:42:51 +0200 |
commit | fdcff37daafb24149348e4b531117d15c48ca3ec (patch) | |
tree | 79711e0e3a3163d4373a9292a2604a04e24fac20 /community/ruby-mathematical/disable-test-assert-failing-on-32bit.patch | |
parent | 0d42953156ad36105b7f484bd96b25fe2be8dd0e (diff) | |
download | aports-fdcff37daafb24149348e4b531117d15c48ca3ec.tar.bz2 aports-fdcff37daafb24149348e4b531117d15c48ca3ec.tar.xz |
community/ruby-mathematical: move from testing
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.patch | 17 |
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 |