The test calls Psych.unsafe_load, but Gem.load_yaml only requires psych when use_psych is enabled. Otherwise yaml_serializer.rb defines a minimal Psych module without unsafe_load, so the test raised NoMethodError whenever no earlier test...gotoken (Kentaro Goto)
When an inclusive range ends at RB_LEN_MAX, `end++` overflows, and `end - beg` can overflow as well. With -fno-strict-overflow the values wrap around and give wrong results, e.g. L = 2**63 - 1 [1, 2][0..L] #=> [...gotoken (Kentaro Goto)
With ruby 3.1.0 on my LXC box, this is the only problem reported as a failure with `make test-all`. It would be helpful if you could merge https://github.com/ruby/resolv/pull/2.gotoken (Kentaro Goto)
> Alternatively this could be part of the default output when starting WEBrick, That's a good idea. However, since the definition of the port number output is in the HTTPServer superclass WEBrick::GenericServer, the amount of change i...gotoken (Kentaro Goto)
Boolean `size?` looks good to me. I vote for it. My first choice was `nonempty?` because this is very common word in popular algorithm text books, e.g., Knuth, Cormen, Sedgewick, Tarjan, Aho, Hopcroft, etc. However some people pointed ...gotoken (Kentaro Goto)
Recently I read similar topic again elsewhere. They pointed * in most cases we have something to do on each duplicate element if any duplicate detected, e.g., reporting all duplicate elements as an error message * `uniq?` looks slightly...gotoken (Kentaro Goto)
The current version of un.rb `httpd` shows port number only: ``` $ ruby -run -e httpd [2021-05-03 21:55:09] INFO WEBrick 1.7.0 [2021-05-03 21:55:09] INFO ruby 3.1.0 (2021-05-03) [x86_64-linux] [2021-05-03 21:55:09] INFO WEBrick...gotoken (Kentaro Goto)
That depends on your purpose or background of the problem. In non-math situations, `power(a, b)` should not return any ordinary number for given `a`<0 where `power(a, b)` stands for "`a` to the power of `b`" over real, just identical to ...gotoken (Kentaro Goto)