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

Fix compatibility with Julia v1.0 #243

Merged
merged 3 commits into from
Aug 13, 2021
Merged

Fix compatibility with Julia v1.0 #243

merged 3 commits into from
Aug 13, 2021

Conversation

vyu
Copy link
Contributor

@vyu vyu commented Aug 3, 2021

In Julia v1.0, the use of eachrow and isnothing breaks the printing of benchmark results as they were only added in v1.1. This PR replaces them with compatible alternatives.

Replace `eachrow` and `isnothing` as they are not in Julia v1.0.
@vchuravy
Copy link
Member

vchuravy commented Aug 3, 2021

Thanks for your PR! Could you add a test?

@vchuravy vchuravy requested a review from tecosaur August 12, 2021 13:40
@vyu
Copy link
Contributor Author

vyu commented Aug 12, 2021

Yes, sure, I've added a test on the exact output of show(::IO, ::MIME"text/plain", t::Trial) for a simple t.

The test found a bug in the previous bugfix to remtrailingzeros in that it no longer removed trailing zeros (the anchor needs to be a space since timestr is of the form \d+\.\d{3} \w+), so I've fixed that as well.

src/trials.jl Outdated Show resolved Hide resolved
test/TrialsTests.jl Show resolved Hide resolved
src/trials.jl Show resolved Hide resolved
@vchuravy vchuravy merged commit 7eebf01 into JuliaCI:master Aug 13, 2021
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.

None yet

3 participants