power_assert icon indicating copy to clipboard operation
power_assert copied to clipboard

Power Assert for Ruby

Results 8 power_assert issues
Sort by recently updated
recently updated
newest added

Currently for power_assert testsuite, it depends on byebug: https://github.com/ruby/power_assert/blob/297fa68908c45c4ca6c41e0940ebcc069744d580/power_assert.gemspec#L26 https://github.com/ruby/power_assert/blob/297fa68908c45c4ca6c41e0940ebcc069744d580/test/trace_test.rb#L10 So can I rely on byebug? Why I am asking here is that * The last activity on https://github.com/deivid-rodriguez/byebug seems...

Get the following error > power_assert: [BUG] Failed to trace: NoMethodError: undefined method `start_with?' for nil:NilClass It was validated as much as possible in a small code. But I do...

`large_object.inspect` returns a very long message. It makes an assertion message hard to read. In Rails, `ActionDispatch::TestResponse` is large and its `inspect` is over 10000 characters (in my environment) ```...

I'm trying to support assertions with multiple lines block. How about this? ---- #20 の元々の問題は、長くなった行を読みやすさのために折り返しているとpower_assertでパースしてもらえないという点でした。 これについて、アドホックなやり方での対応を試みてみました。どうでしょうか? 現時点ですぐにマージしていただける物とは考えておらず、ひとまずご意見を頂けましたら幸いです。 基本的な考え方は、「1行をパースして失敗したら、次の行を足してパースし直す。これをパースに成功するまで繰り返す。」というものです。 そのため、現状でのデメリットとして、今まで`valid_syntax?(str)`で`false`と判定されていたケースで毎回ファイルの終端までの読み込みが行われてしまうため、テストの実行速度が低下することが懸念されます。 この問題についての有効な解決策はまだ思いついておりません。

README does not seem to show how to make `assert` an accessible method. And I can't find the method `assert` in repo. ```ruby source "https://rubygems.org" gem "rake" gem "power_assert" ```...

See https://bugs.ruby-lang.org/issues/20560 `make install` is not installing `power_assert`. The problem seems to be a version mismatch between the main/master branch here and Ruby's [gems/bundled_gems](https://github.com/ruby/ruby/blob/c3b5b98e15e9a893aaca46e53d2c8931bf13e322/gems/bundled_gems). Also, current version is `2.0.4dev`. I...

I faced flaky result with Ruby 3.4.2 and `power_assert`. https://github.com/hsbt/minitest-power_assert/actions/runs/13891945806/job/38865298257 ``` # success ❯ rake test Run options: --seed 18518 # Running: . assert { "0".class == "3".to_i.times.map {|i| i...

This is only documented in the Readme. 3.0.0 now depends on pattern matching, which is (partially) invalid syntax on 2.7. The `test-unit` gem depends on `power_assert` and tries to handle...