aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [ruby/reline] Suppress crashing when auto_indent_proc returns broken indent infoaycabta2021-01-081-0/+14
| | | | | | Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/7c24276275
* [ruby/reline] Remove debug printaycabta2021-01-081-1/+0
| | | | https://github.com/ruby/reline/commit/d7fbaedc6a
* [ruby/reline] Correct var names in Reline were different from vi-*-mode-stringaycabta2021-01-081-6/+6
| | | | https://github.com/ruby/reline/commit/8255fc93b9
* [ruby/reline] Update cursor correctly when just cursor movingaycabta2021-01-081-0/+18
| | | | | | This fixes ruby/reline#236 and ruby/reline#239. https://github.com/ruby/reline/commit/3e3c89d00b
* [ruby/irb] Fix BACK_TRACE_LIMIT logicaycabta2021-01-081-0/+66
| | | | https://github.com/ruby/irb/commit/30dc5d43fe
* [ruby/irb] Use Exception#full_message to show backtrace in the correct orderaycabta2021-01-082-2/+63
| | | | | | [Bug #17466] https://github.com/ruby/irb/commit/1c76845cca
* [ruby/irb] refactoring an error handling in `IRB::Inspector`Nobuhiro IMAI2021-01-081-8/+15
| | | | | | | | * moved rescue clause to `#inspect_value` to catch all failures in inspectors * test with all (currently five kind of) inspect modes - tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject` https://github.com/ruby/irb/commit/9d112fab8e
* [ruby/irb] do not escape a predicate method for doc namespaceNobuhiro IMAI2021-01-081-0/+8
| | | | | | * Fixes #88 https://github.com/ruby/irb/commit/d431a30af4
* [ruby/bigdecimal] Fix trailing zero handling in rb_uint64_convert_to_BigDecimalKenta Murata2021-01-071-0/+4
| | | | https://github.com/ruby/bigdecimal/commit/2056604d56
* [ruby/bigdecimal] Include TestBigDecimalBase in TestBigDecimalUtilKenta Murata2021-01-075-5/+6
| | | | https://github.com/ruby/bigdecimal/commit/f732201df1
* strip trailing spaces [ci skip]Nobuyoshi Nakada2021-01-061-1/+1
|
* 600x larger timeout for RelineTakashi Kokubun2021-01-051-1/+1
| | | | | I didn't notice it's msec. 2.5s is too short. http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3311385
* [ruby/ostruct] Allow ostruct to return a value on super (#4028)Adam Hess2021-01-051-0/+8
| | | | | This fixes cases where you can super in something that inherits from OpenStruct Co-authored-by: John Hawthorn <john@hawthorn.email>
* [ruby/io-console] Ignore chomp! result and return the modified stringNobuyoshi Nakada2021-01-051-0/+9
| | | | https://github.com/ruby/io-console/commit/09e5ccc729
* [ruby/irb] Use error tokens if there are no correct tokens in the same placeaycabta2021-01-051-0/+32
| | | | | | For example, the broken code "%www" will result in only one error token. https://github.com/ruby/irb/commit/9fa39a7cf3
* [ruby/irb] Use Ripper::Lexer#scan to take broken tokensaycabta2021-01-051-0/+19
| | | | | | ref. https://github.com/ruby/reline/pull/242 https://github.com/ruby/irb/commit/54f90cb6c9
* [ruby/irb] Heredoc may contain multiple newlines in a single tokenaycabta2021-01-051-0/+17
| | | | | | | | | Use the start token as the indentation criteria so that it works properly in heredoc. ref. https://github.com/ruby/reline/pull/242 https://github.com/ruby/irb/commit/9704808dfd
* [ruby/irb] Handle indentations related to keyword "do" correctlyaycabta2021-01-051-0/+70
| | | | | | This fixes ruby/irb#158. https://github.com/ruby/irb/commit/964643400b
* [ruby/irb] Escape invalid byte sequence in Exceptionaycabta2021-01-051-0/+8
| | | | | | This fixes ruby/irb#141. https://github.com/ruby/irb/commit/0815317d42
* [ruby/irb] Newline in oneliner def doesn't reset indentaycabta2021-01-051-0/+17
| | | | | | This closes ruby/irb#132. https://github.com/ruby/irb/commit/43456dcf5e
* [ruby/irb] Stringify when a non-object is passed to PP#textaycabta2021-01-041-0/+19
| | | | | | | | | | | | | | If a nested object is passed to #pp, it may be sometimes passed to the #text method as an object without being stringified. This is fixed on the Ruby main repository; https://github.com/ruby/ruby/commit/433a3be86a811de0b4adbb92e054ee3a6fc6b4d8 but it was a bug of Ripper so still needs this workaround for using irb as a gem on Ruby 3.0.0 or earlier. Co-authored-by: k0kubun <takashikkbn@gmail.com> https://github.com/ruby/irb/commit/8d13df22ee
* Fix broken JIT of getinlinecacheTakashi Kokubun2021-01-041-0/+12
| | | | | | | | e7fc353f04 reverted vm_ic_hit_p's signature change made in 53babf35ef, which broke JIT compilation of getinlinecache. To make sure it doesn't happen again, I separated vm_inlined_ic_hit_p to make the intention clear.
* enable constant cache on ractorsKoichi Sasada2021-01-051-9/+13
| | | | | | | | | | | | | | | | constant cache `IC` is accessed by non-atomic manner and there are thread-safety issues, so Ruby 3.0 disables to use const cache on non-main ractors. This patch enables it by introducing `imemo_constcache` and allocates it by every re-fill of const cache like `imemo_callcache`. [Bug #17510] Now `IC` only has one entry `IC::entry` and it points to `iseq_inline_constant_cache_entry`, managed by T_IMEMO object. `IC` is atomic data structure so `rb_mjit_before_vm_ic_update()` and `rb_mjit_after_vm_ic_update()` is not needed.
* Track RubyGems master(3.3.0.dev) branch at ↵Hiroshi SHIBATA2021-01-0414-107/+109
| | | | 55634a8af18a52df86c4275d70fa1179118bcc20
* Fixed error message when % at EOFNobuyoshi Nakada2021-01-041-0/+1
|
* Added tests for Time#getlocal with UTC offsetNobuyoshi Nakada2021-01-031-0/+8
|
* Avoid hanging on --jit-wait after MJIT.pauseTakashi Kokubun2021-01-031-0/+8
| | | | When a worker is stopped, nobody will JIT a method for you.
* Add Enumerable#compact and Enumerator::Lazy#compactzverok2021-01-022-0/+20
|
* [ruby/bigdecimal] Fix test for Ruby 2.4Kenta Murata2021-01-021-10/+20
| | | | | | Ruby 2.4 does not have RbConfig::LIMITS. https://github.com/ruby/bigdecimal/commit/c8087523b0
* [ruby/bigdecimal] Implement special conversions for 64-bit integersKenta Murata2021-01-021-0/+17
| | | | | | | | | | | | | | | | | This change improves the conversion speed from small integers. ``` Comparison: big_n9 master: 4003688.9 i/s bigdecimal 3.0.0: 1270551.0 i/s - 3.15x slower big_n19 master: 5410096.4 i/s bigdecimal 3.0.0: 1000250.3 i/s - 5.41x slower ``` https://github.com/ruby/bigdecimal/commit/3429bd7e6f
* [ruby/bigdecimal] Fix test_limitKenta Murata2021-01-021-9/+10
| | | | | | | Keep the default value of BigDecimal.limit by BigDecimal.save_limit to avoid failures of the other test methods due to the unexpected limit. https://github.com/ruby/bigdecimal/commit/bdc1cc6585
* Added AST assertions for method definition arguments [Bug #17495]Nobuyoshi Nakada2021-01-011-0/+8
|
* Added AST tests for endless method definitionsNobuyoshi Nakada2021-01-011-0/+19
|
* Make any hash values fixable [Bug #17488]Nobuyoshi Nakada2020-12-311-0/+26
| | | | | | | As hnum is an unsigned st_index_t, the result of RSHIFT may not be in the fixable range. Co-authored-by: NeoCat <neocat@neocat.jp>
* Try increasing SMTP's read_timeout for --jit-waitTakashi Kokubun2020-12-291-0/+11
| | | | | | | for random hangs like: http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302796 http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302188 http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3301293
* Increase timeout for reline with --jit-waitTakashi Kokubun2020-12-291-0/+1
| | | | | | | for failures like: http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-130509 http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-165132 http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201228-015519
* irb: add more syntax errors colorizing support (#3967)Nobuhiro IMAI2020-12-281-0/+14
|
* [ruby/irb] Fix failing testsTakashi Kokubun2020-12-281-3/+3
| | | | https://github.com/ruby/irb/commit/7723ade899
* Dup kwrest hash when merging other keyword arguments [Bug #17481]Nobuyoshi Nakada2020-12-281-1/+24
|
* test/test_trick.rb: fixed the position to add timeoutNobuyoshi Nakada2020-12-251-2/+2
|
* test/test_trick.rb: increase timeout of some testsYusuke Endoh2020-12-251-2/+2
| | | | http://rubyci.s3.amazonaws.com/raspbian10-armv7l/ruby-master/log/20201225T071824Z.fail.html.gz
* test_trick.rb: Make the encoding explicit for code written in UTF-8Nobuyoshi Nakada2020-12-251-2/+2
|
* test/test_trick.rb: Add a test file for TRICK entries (#3988)Yusuke Endoh2020-12-251-0/+191
| | | | | * test/test_trick.rb: Add a test file for TRICK entries Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/reline] Doesn't contain terminate spaces by cwaycabta2020-12-241-7/+25
| | | | | | This closes ruby/reline#233. https://github.com/ruby/reline/commit/4c3f2e2eae
* [ruby/reline] Use #bytesize for vi_replace_charaycabta2020-12-241-0/+18
| | | | | | This closes ruby/reline#228. https://github.com/ruby/reline/commit/8205fa0b00
* [ruby/reline] Delete the last char of a line by dwaycabta2020-12-241-0/+23
| | | | | | This closes ruby/reline#229. https://github.com/ruby/reline/commit/3f0ae689c4
* [ruby/reline] Discard prompt cache by changing mode iconaycabta2020-12-241-0/+14
| | | | https://github.com/ruby/reline/commit/bfeda8a79b
* Store errno in struct rb_process_statusNobuyoshi Nakada2020-12-241-1/+16
| | | | | To propagate errno in the fiber thread scheduler hook. Returns nil when no terminated process.
* Remove unneeded codeMarc-Andre Lafortune2020-12-241-5/+0
|
* dir.c: chdir conflict should raise only when called in different threadYusuke Endoh2020-12-241-3/+16
| | | | | ... and keep it as a warning (like 2.7) when it is called in the same thread. [Bug #15661]