23 Commits

Author SHA1 Message Date
John Bampton b4a1e98f2e Rubocop: fix target Ruby version; add two more cops; fix lint error
https://docs.rubocop.org/rubocop/cops_layout.html#layoutassignmentindentation

https://docs.rubocop.org/rubocop/cops_layout.html#layoutblockendnewline
2025-06-25 18:02:53 +10:00
dearblue c654123561 Distinguish the call frame of the generator with OP_RETURN_BLK
When multiple identical proc objects are placed on the call stack, it is not possible to distinguish where to `return`.
Therefore, use env object comparisons to do this.

fixed #6411
2024-11-10 18:39:00 +09:00
Yukihiro "Matz" Matsumoto ecd2d8c11e wrap method arguments by parentheses as convention 2023-02-01 14:33:46 +09:00
John Bampton 2438195289 ruby: remove unneeded parenthesis from methods
commit eeb33da43035b5400f8d1830ea52a68691b3a678
Author: John Bampton <jbampton@gmail.com>
Date:   Mon Oct 31 23:53:43 2022 +1000

    Fix up

commit 80923c8f92a58b2f33a36d6403de7f6341973110
Merge: bc89500f6 416f012f6
Author: John Bampton <jbampton@users.noreply.github.com>
Date:   Mon Oct 31 20:12:59 2022 +1000

    Merge branch 'master' into ruby-remove-parenthesis

commit bc89500f6357c453b457516452ffcc7fd03fee88
Author: John Bampton <jbampton@gmail.com>
Date:   Mon Oct 31 14:39:20 2022 +1000

    ruby: remove unneeded parenthesis from methods
2022-11-01 00:25:09 +10:00
mirichi a997e41d17 add block argument test #2144 2021-06-04 22:25:33 +09:00
KOBAYASHI Shuji 8a7298e069 Use more appropriate assertion methods 2019-02-19 20:02:50 +09:00
Yukihiro "Matz" Matsumoto b4f9b031de Some cosmetic changes 2017-11-22 16:09:50 +09:00
ksss 0c3226db04 OP_ENTER fix variable assignment 2014-05-06 23:30:02 +09:00
mirichi d97ab343bd add post mandatory argument test 2014-04-28 09:37:45 +09:00
Jun Hiroe 6d1469dfae I fix order of actual and expect test value in bs_block.rb. 2013-08-02 20:54:07 +09:00
Daniel Bovensiepen 059405edb8 Fix Bootstrap Block Tests with assert_nil 2013-06-14 22:38:29 +08:00
Daniel Bovensiepen f8e13b86b7 Improve Bootstrap Block Tests 2013-06-14 21:32:33 +08:00
Masamitsu MURASE 8f8d9fd41a Add test for issue #750. 2013-01-20 01:49:52 +09:00
skandhas 6c8d2ca399 add assert 'BS Block 35' 2012-11-23 16:25:42 +08:00
skandhas 385f129aca add assert 'BS Block 34' 2012-11-23 16:22:24 +08:00
skandhas a316e92da3 modify the order of BS BLOCK assert. Because 'BS BLOCK 32' is already defined at line:349 2012-11-23 16:20:04 +08:00
Yukihiro Matz Matsumoto ac0233bcd0 add test for issue#547; close #554 2012-11-17 02:02:08 +09:00
Yukihiro Matsumoto 0d99856b57 proper type check when creating a range; #345 2012-07-08 00:20:56 +09:00
Yukihiro Matsumoto becb7e9877 .. is weaker than == 2012-07-08 00:19:40 +09:00
Yukihiro Matsumoto 73d7000b8f remove .inspect from bs_block.rb tests 2012-06-14 05:15:08 +09:00
Daniel Bovensiepen 31e9705022 Add Test cases for Literals, Enumeration, Exceptions and clean line endings 2012-05-29 01:20:46 +08:00
Daniel Bovensiepen dd6af6d2ec Add newline in the end of test case files so that the concat of all files works in all cases proper 2012-05-16 16:00:05 +08:00
Daniel Bovensiepen b4a80d7485 Add first part of the bootstrap code 2012-05-16 15:50:54 +08:00