summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-07-13[ruby/fiddle] Add MemoryView.export and MemoryView#release ↵Sutou Kouhei
(https://github.com/ruby/fiddle/pull/80) fix https://github.com/ruby/fiddle/pull/79 Users can release memory views explicitly before process exit. Reported by xtkoba. Thanks!!! https://github.com/ruby/fiddle/commit/1de64b7e76
2021-07-13[ruby/fiddle] Add Fiddle::MemoryView#to_s ↵Sutou Kouhei
(https://github.com/ruby/fiddle/pull/78) Fix https://github.com/ruby/fiddle/pull/74 Reported by dsisnero. Thanks!!!
2021-07-13[ruby/fiddle] test: fix SetLastError's input typeSutou Kouhei
https://github.com/ruby/fiddle/commit/ca5e6a0404
2021-07-13[ruby/fiddle] test: use double quote for string literalSutou Kouhei
https://github.com/ruby/fiddle/commit/fab7eab95b
2021-07-13[ruby/fiddle] test: add a test for win32_last_socket_errorSutou Kouhei
https://github.com/ruby/fiddle/commit/c86cec03cd
2021-07-13[ruby/fiddle] test: add missing receiverSutou Kouhei
https://github.com/ruby/fiddle/commit/1da3b4af16
2021-07-13[ruby/fiddle] windows: use GetLastError() for win32_last_errorSutou Kouhei
Ruby: [Bug #11579] Patch by cremno phobia. Thanks!!! https://github.com/ruby/fiddle/commit/760a8f9b14
2021-07-13[ruby/error_highlight] Support a file that has no final newlineYusuke Endoh
https://github.com/ruby/error_highlight/commit/9d671284cb
2021-07-13[ruby/error_highlight] Support hard tabsYusuke Endoh
Now, the highlight line is created by replacing non-tab characters with spaces, and keeping all hard tabs as-is. This means the highlight line has the completely same indentation as the code snippet line. Fixes #7 https://github.com/ruby/error_highlight/commit/38f20fa542
2021-07-12[ruby/error_highlight] Update a test for multibyte charactersYusuke Endoh
https://github.com/ruby/error_highlight/commit/2fc70d7f8e
2021-07-11[ruby/date] Fix comparison with Float::INFINITYJeremy Evans
Fixes [Bug #17945] https://github.com/ruby/date/commit/953d907238
2021-07-11[ruby/irb] Show LANG and LC_ALL env by irb_infoaycabta
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> https://github.com/ruby/irb/commit/b431742430
2021-07-10Remove half-defined Reline on LoadErrorNobuyoshi Nakada
When fiddle is not avaiable, reline/terminfo depending on it also fails.
2021-07-10Skip fiddle tests if fiddle is not avaiableNobuyoshi Nakada
2021-07-08mkmf.rb: try linking at try_varNobuyoshi Nakada
To check for variables accessible but not declared.
2021-07-08Split test of Hash.[] and add assertion for default value/procNobuyoshi Nakada
For a73f13c9070a5189947641638398cbffb8d012d8.
2021-07-08Adapt test_emoji_breaks.rb to Unicode 13.0.0/Emoji 13.0Martin Dürst
- Add UNICODE_VERSION,... to deal with new location of some of the emoji-related data files. - Introduce class BreakFile to handle various file properties. - Adapt main code to use BreakFile.
2021-07-07Sync RubyGems and Bundler with upstreamHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4634
2021-07-07Sync latest bundler & rubygems development versionDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/4533
2021-07-05[ruby/rdoc] Fix links without pathsNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/424bd5db4d
2021-07-05[ruby/rdoc] Fix for explicit http linkNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/caf234665c
2021-07-05[ruby/rdoc] Allow a label in a link to another document textNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/85bb2d33bb
2021-07-05[ruby/rdoc] Fix assertions which look very likely unintendedNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/dc7c890a3d
2021-07-05[ruby/rdoc] Support ActiveSupport::Concern.includedaycabta
ref. https://github.com/rails/rails/blob/168ddaa08a63cd956bb7c3ba10be1a7ae36d4ee2/activerecord/lib/active_record/core.rb#L9-L20 https://github.com/ruby/rdoc/commit/a2d651dade Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
2021-07-05[ruby/rdoc] Prefer omit to pendNobuyoshi Nakada
These conditions are not temporary, rather platform dependent. https://github.com/ruby/rdoc/pull/815#discussion_r654660411 https://github.com/ruby/rdoc/commit/92545fa250
2021-07-05[ruby/rdoc] Fix chained inclusion ancestors_ofUlysse Buonomo
Fixes #814 Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com> https://github.com/ruby/rdoc/commit/b45f747216
2021-07-04Add domain check macrosNobuyoshi Nakada
2021-07-04Removed extra double quotes from domain error messagesNobuyoshi Nakada
2021-07-03Separate toolchain dependent testNobuyoshi Nakada
2021-07-01Keep GC disabled until VM bootstrap has done [Bug #17583]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4617
2021-07-01- add regression tests for U+6E7F (湿) in ISO-2022-JPMartin Dürst
In ISO-2022-JP, the bytes use to code are the same as those for "<>". This adds regression tests to make sure that these bytes, when representing 湿, are NOT escaped with encode("ISO-2022-JP, xml: :text) or similar. These are additional regression tests for #12052.
2021-07-01Replace copy coroutine with pthread implementation.Samuel Williams
2021-06-30[ruby/irb] Fix error on `ls object_cant_define_singleton`Masataka Pocke Kuwabara
such as `ls 42`, `ls :sym` and so on https://github.com/ruby/irb/commit/b1d436a853
2021-06-30Prevent "warning: ambiguity between regexp and two divisions"Yusuke Endoh
2021-06-30[ruby/error_highlight] Experimentally support a custom formatterYusuke Endoh
https://github.com/ruby/error_highlight/commit/f40a1de20e
2021-06-30Use Module#ancestors order in recursive constant lookupAlan Wu
Before this commit, const_get with inherit=true and constant lookup expressions searched the ancestors of the starting point in an order different from `starting_point.ancestors`. Items in the ancestry list introduced through prepend were searched after searching the module they were prepended into. This oddity allowed for situations where constant lookups gave different results even though `starting_point.ancestors` is the same. Do the lookup in the same order as `starting_point.ancestors` by skipping classes and modules that have an origin iclass. The origin iclass is in the super chain after the prepended modules. Note that just like before this commit, the starting point of the constant lookup is always the first item that we search, regardless of the presence of any prepended modules. [Bug #17887] Notes: Merged: https://github.com/ruby/ruby/pull/4585
2021-06-29Rename error_squiggle to error_highlightYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/4586
2021-06-29[WIP] add error_squiggle gemYusuke Endoh
``` $ ./local/bin/ruby -e '1.time {}' -e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError) 1.time {} ^^^^^ Did you mean? times ``` https://bugs.ruby-lang.org/issues/17930 Notes: Merged: https://github.com/ruby/ruby/pull/4586
2021-06-29Add basic test for updated IO wait functions.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/4612
2021-06-29Use assert_not_match "Did you mean?" for UncorrectableNameCheckTestYusuke Endoh
... instead of exact matching. I'm now creating a built-in gem that modifies Exception's error message, so the expectation value is changed. IMO, it is good to check that did_you_mean suggestion is NOT added in the uncorrectable case. https://github.com/ruby/did_you_mean/commit/ebe88ec4d2
2021-06-29Prefer qualified names under ThreadNobuyoshi Nakada
2021-06-27Check if closed after each yield [Bug #17661]Nobuyoshi Nakada
2021-06-26Work around issue transcoding issue with non-ASCII compatible encodings and ↵Jeremy Evans
xml escaping When using a non-ASCII compatible source and destination encoding and xml escaping (the :xml option to String#encode), the resulting string was broken, as it used the correct non-ASCII compatible encoding, but contained data that was ASCII-compatible instead of compatible with the string's encoding. Work around this issue by detecting the case where both the source and destination encoding are non-ASCII compatible, and transcoding the source string from the non-ASCII compatible encoding to UTF-8. The xml escaping code will correctly handle the UTF-8 source string and the return the correctly encoded and escaped value. Fixes [Bug #12052] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4605 Merged-By: jeremyevans <code@jeremyevans.net>
2021-06-26Scan the coderange in the given encodingNobuyoshi Nakada
2021-06-25Revert "Revert "[ruby/reline] Fix failed test""aycabta
I'm so sorry, the previous revert was just a mistake. This reverts commit 9103c3ba8bc09f287f69ca322f58faa34e003f2e.
2021-06-25Revert "[ruby/reline] Fix failed test"aycabta
This reverts commit 491591c7cee842601118efc2698e0e41283827b3.
2021-06-25[ruby/reline] Fix failed testima1zumi
For ruby/ruby repository's AppVeyor CI (Windows environment), `Reline::IOGate.encoding` will be changed from `UTF-8` to `Windows-31J` after the test is run. So, when `test/reline/test_key_actor_emacs.rb` is loaded, `Reline::IOGate.encoding == Encoding::UTF_8` will be `true`, but at the time of test execution, `Reline::IOGate.encoding` is `Windows-31J`. For this reason, I changed the test method to check `Reline::IOGate.encoding` in the test method. https://github.com/ruby/reline/commit/10e1ce3320
2021-06-25[ruby/racc] Stop compressing integer listsJean Boussier
It is unclear why this was implemented, I assume it was for performance back in 2006. However today, this compression defeats bytecode caching entirely and end up being counter productive. https://github.com/ruby/racc/commit/ae3703c1d0
2021-06-24Remove shift of ep when computing Proc#hashJeremy Evans
The shift was causing far fewer unique values of hash than expected. Fix pointed out by xtkoba (Tee KOBAYASHI) Fixes [Bug #17951] Notes: Merged: https://github.com/ruby/ruby/pull/4574
2021-06-24Actually ignore FNM_CASEFOLD flag in Dir.globJeremy Evans
This was already documented as being ignored, but it wasn't being ignored, causing an issue in a particular case where a UTF-8 pattern was provided and a filename was tested that wasn't valid UTF-8. Fixes [Bug #14456] Notes: Merged: https://github.com/ruby/ruby/pull/4583