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

any for an empty array returns false #203

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Jan 3, 2023

Fixes #202

After this

julia> any(Trues(2,0))
false

which matches

julia> any(trues(2,0))
false

@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Merging #203 (0a76f01) into master (4845062) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #203   +/-   ##
=======================================
  Coverage   97.89%   97.89%           
=======================================
  Files           4        4           
  Lines         665      665           
=======================================
  Hits          651      651           
  Misses         14       14           
Impacted Files Coverage Δ
src/FillArrays.jl 97.36% <100.00%> (ø)

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

@dlfivefifty dlfivefifty merged commit 617be46 into JuliaArrays:master Jan 3, 2023
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.

Incorrect handling of empty arrays in any
2 participants