Skip to content

3.4 generating a couple warnings #283

@searls

Description

@searls

Absolutely love super_diff and grateful for your work keeping this project alive.

I'm revitalizing my & @tenderlove's TLDR project and noticed a couple warnings in its test output:

Run options: --seed 34394

# Running:

......................................................../Users/justin/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/super_diff-0.15.0/lib/super_diff/core/inspection_tree.rb:17: warning: the block passed to 'SuperDiff::Core::InspectionTree#add_node' defined at /Users/justin/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/super_diff-0.15.0/lib/super_diff/core/inspection_tree.rb:119 may be ignored
/Users/justin/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/super_diff-0.15.0/lib/super_diff/core/inspection_tree.rb:122: warning: the block passed to 'SuperDiff::Core::InspectionTree#build_node' defined at /Users/justin/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/super_diff-0.15.0/lib/super_diff/core/inspection_tree.rb:129 may be ignored
.................................................................................

Finished in 2.268127s, 60.4023 runs/s, 231.9094 assertions/s.

137 runs, 526 assertions, 0 failures, 0 errors, 0 skips

To replicate:

git clone git@github.com:tendersearls/tldr.git
cd tldr
./script/setup 
./script/test

Sorry I don't have time right now to pinpoint which test is triggering it right now!

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