Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overload == operator for RDWaveform #29

Merged
merged 4 commits into from
Jul 29, 2023
Merged

Overload == operator for RDWaveform #29

merged 4 commits into from
Jul 29, 2023

Conversation

fhagemann
Copy link
Contributor

Two identical RDWaveforms (same signal and time) would yield false when being compared using the == operator.
Overloading == results in the expected behaviour for RDWaveform and ArrayOfRDWaveforms

I also added tests for ==.

@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #29 (c920322) into main (d000a46) will increase coverage by 4.24%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   11.40%   15.65%   +4.24%     
==========================================
  Files           5        5              
  Lines         114      115       +1     
==========================================
+ Hits           13       18       +5     
+ Misses        101       97       -4     
Files Changed Coverage Δ
src/detector_waveforms.jl 60.00% <100.00%> (+18.33%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@oschulz
Copy link
Member

oschulz commented Jul 29, 2023

We shouldn't compare the types, comparing the contents is sufficient.

@oschulz
Copy link
Member

oschulz commented Jul 29, 2023

Thanks! Can you add a version bump?

@oschulz oschulz merged commit a6ae8fc into JuliaPhysics:main Jul 29, 2023
@oschulz
Copy link
Member

oschulz commented Jul 29, 2023

Thanks!

JuliaRegistries/General#88595

@fhagemann fhagemann deleted the = branch March 20, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants