aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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]
* shareable_constant_value: experimental_copyKoichi Sasada2020-12-241-0/+13
| | | | | | | "experimental_everything" makes the assigned value, it means the assignment change the state of assigned value. "experimental_copy" tries to make a deep copy and make copyied object sharable.
* Fix class of method in Method#inspect for singleton classes of classesJeremy Evans2020-12-231-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Previously, due to a change to fix bug 15608, Method#inspect output changed for class methods: Ruby 2.7 "#<Method: String.prepend(*)>" Before change: "#<Method: #<Class:Object>(Module)#prepend(*)>" This is wrong because the Method object was created from String and not Object. This is because the fix for bug 15608 assumed it was being called on the singleton class of a instance, and would skip the first singleton class until it got to the class itself. For class methods, this results in always using the superclass. Fix behavior to not skip until the superclass if the singleton class is the singleton class of a module or class. After change: "#<Method: #<Class:Object>(Module)#prepend(*)>" Fixes [Bug #17428]
* test/ruby/test_module.rb: not depend on the order of method definitionsYusuke Endoh2020-12-241-5/+5
|
* Reset paren_nest at tAREF and tASET [Bug #17431]Nobuyoshi Nakada2020-12-241-0/+18
|
* Module#public_class_method also accepts a symbol array as an argumentYusuke Endoh2020-12-241-1/+23
| | | | | I'm unsure if this is intentional, but add a document anyway. [Feature #17314]
* [ruby/irb] Fix error_message for assert_dynamic_promptaycabta2020-12-231-2/+8
| | | | https://github.com/ruby/irb/commit/b12dfb6298
* [ruby/psych] Skip test_ractor.rb with ruby/psych repoHiroshi SHIBATA2020-12-231-1/+1
| | | | | | | Because ruby/psych still uses minitest. minitest didn't support assert_ractor provided by test suite of ruby/ruby repo. https://github.com/ruby/psych/commit/7da26358f1
* [ruby/psych] Optimize cache with `compare_by_identity`Marc-Andre Lafortune2020-12-231-0/+3
| | | | | Using `compare_by_identity` gives a 4x performance boost on cache hits. Benchmark in https://github.com/JuanitoFatas/fast-ruby/issues/189
* [ruby/psych] Make Ractor-ready.Marc-Andre Lafortune2020-12-231-0/+47
| | | | | | | Config is Ractor-local. Benchmarking reveals that using `Ractor.local_storage` for storing cache is similar to accessing a constant (~15% slower).
* Ensure non-literal expressions shareable if `leteral`Nobuyoshi Nakada2020-12-231-4/+6
|
* Update rb_ractor_ensure_shareableNobuyoshi Nakada2020-12-231-4/+6
| | | | | * Fixed use of rb_ractor_shareable_p * Raise Ractor::IsolationError
* Split the testNobuyoshi Nakada2020-12-231-1/+15
|
* Added assertionsNobuyoshi Nakada2020-12-231-1/+21
|
* Added dedicated helper methodsNobuyoshi Nakada2020-12-231-16/+33
|
* Changed shareable literal semantics [Feature #17397]Nobuyoshi Nakada2020-12-231-5/+7
| | | | | | When `literal`, check if the literal about to be assigned to a constant is ractor-shareable, otherwise raise `Ractor::Error` at runtime instead of `SyntaxError`.
* Merge RubyGems 3.2.3 and Bundler 2.2.3Hiroshi SHIBATA2020-12-237-122/+173
|
* ripper: fix bad label parameter handling [Bug #17425]Nobuyoshi Nakada2020-12-231-15/+16
|
* [ruby/etc] Make Ractor safeMarc-Andre Lafortune2020-12-221-0/+23
|
* [memory_view][fiddle] Rename len to byte_size in rb_memory_view_tKenta Murata2020-12-232-6/+6
|
* [ruby/reline] [ruby/irb] Handle multiple newlines in a token correctlyaycabta2020-12-231-2/+53
| | | | | | | | | Co-authored-by: manga_osyo <manga.osyo@gmail.com> Co-authored-by: ima1zumi <mariimaizumi5@gmail.com> https://github.com/ruby/irb/commit/c59a9be82f https://github.com/ruby/reline/commit/a7922da16b
* Add verbose nil in testingDelton Ding2020-12-231-0/+1
|
* Enable `Fiber.current` and `Fiber#alive?` call inside ractorDelton Ding2020-12-231-0/+22
|
* Make NoMatchingPatternError a subclass of StandardErrorKazuki Tsujimoto2020-12-231-0/+4
|
* [ruby/reline] Fixed an exception occurred when ambiguous width character was ↵ima1zumi2020-12-221-0/+4
| | | | | | passed to `#calculate_width` [Bug #17405] https://github.com/ruby/reline/commit/f79b4c857f
* [ruby/reline] Support isearch-terminatorsaycabta2020-12-221-0/+30
| | | | https://github.com/ruby/reline/commit/a7922da16b
* [ruby/reline] Render refreshed prompt just after i-search finishedaycabta2020-12-221-0/+11
| | | | https://github.com/ruby/reline/commit/0d3188fe34