Skip to content

power_assert didn't show .class result sometimes with Ruby 3.4 #53

@hsbt

Description

@hsbt

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 + 1 }.class }
                 |     |      |    |     |                |
                 |     |      |    |     |                Array
                 |     |      |    |     [1, 2, 3]
                 |     |      |    #<Enumerator: 3:times>
                 |     |      3
                 |     false
                 String
.......

Finished in 0.029726s, 269.1247 runs/s, 672.8117 assertions/s.

8 runs, 20 assertions, 0 failures, 0 errors, 0 skips
# failed 
❯ rake test
Run options: --seed 57838

# Running:

....    assert { "0".class == "3".to_i.times.map {|i| i + 1 }.class }
                       |      |    |     |
                       |      |    |     [1, 2, 3]
                       |      |    #<Enumerator: 3:times>
                       |      3
                       false
F...

Finished in 0.030614s, 261.3184 runs/s, 653.2959 assertions/s.

The above issue is happend with one out of every five fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions