* assert_raise's 2nd argument is the failure message, shown when the expected exception is not raised. It's not the expected message. See https://github.com/test-unit/test-unit/issues/347 https://github.com/ruby/prism/commit/e3df9...Eregon (Benoit Daloze)
I have tried for curiosity with `ruby 4.0.0preview3` and it is still unfixed: ``` $ RUBY_BOX=1 ruby -ve 'ns = Ruby::Box.new; p ns::Gem.equal?(Gem)' ruby 4.0.0preview3 (2025-12-18 master cfa3e7cf75) +PRISM [x86_64-linux] ruby: warning...Eregon (Benoit Daloze)
+1 I think `MonitorMixin` and `MonitorMixin::ConditionVariable` are small enough that it would be good to have them in core too. BTW `wait_while`/`wait_until` are good patterns and maybe something `Thread::ConditionVariable` should have...Eregon (Benoit Daloze)
mame (Yusuke Endoh) wrote in #note-22: > `source_location` does not uniquely identify a node. > ... True but that's not a problem for `Prism.node_for(Method | UnboundMethod | Proc)` because it returns `DefNode | LambdaNode | CallNode |...Eregon (Benoit Daloze)
@nobu The `char place_holder[2048]` is something in Ruby not Windows though. Why does CRuby not stop at the first `\0`? This is path, so it's defined as `\0`-terminated, no?Eregon (Benoit Daloze)
knu (Akinori MUSHA) wrote in #note-14: > I'm leaning toward doing these: > ... +1 I think this is clearly better. > - Reverting the default size of Enumerator.produce from nil to infinity I think that change on its own is not wor...Eregon (Benoit Daloze)
Indeed, `power_assert` is broken with 2 blocks on the same line: ```ruby require 'test/unit' class FooTest < Test::Unit::TestCase def test_foo assert { 3.times.to_a.include?(2) }; assert { 3.times.to_a.include?(3) } end end ``` ...Eregon (Benoit Daloze)
mame (Yusuke Endoh) wrote in #note-17: > Huh? `Proc` already has its `node_id` (via its ISeq), so `Prism.node_for` is implementable without `source_location`. > ... No, `node_id` is CRuby-specific and this code to extract it is a hack. `...Eregon (Benoit Daloze)
* This reverts commit 623559faa3dd0927b4034a752226a30ae8821604. * There is an issue with the jump in LIR, see https://github.com/ruby/ruby/pull/15542.Eregon (Benoit Daloze)