Skip to content

Fix tests on Julia 1.6#606

Merged
nalimilan merged 1 commit into
masterfrom
nl/test
Oct 4, 2020
Merged

Fix tests on Julia 1.6#606
nalimilan merged 1 commit into
masterfrom
nl/test

Conversation

@nalimilan

Copy link
Copy Markdown
Member

@printf(stdout,"<1e%2.2d", -4) now correctly gives "<1e-04", which allows the values to be always aligned (the column has always a 6-character width).

`@printf(stdout,"<1e%2.2d", -4)` now correctly gives `"<1e-04"`, which allows the values to be always aligned (the column has always a 6-character width).
@nalimilan
nalimilan merged commit 0ffe2e2 into master Oct 4, 2020
@nalimilan
nalimilan deleted the nl/test branch October 4, 2020 17:49
@kleinschmidt

Copy link
Copy Markdown
Member

This is causes test in StatsModels and GLM (and probably others) to break on 1.6. Here's an example of one that's failing:

https://github.com/JuliaStats/StatsModels.jl/blob/0ba8a8826e84883e7281ef033fe68d5f861837f0/test/statsmodel.jl#L279-L286

These tests all expect the p value to be printed like <1e-4.

@kleinschmidt

Copy link
Copy Markdown
Member

Oh I see you've only changed the TEST here, not the actual printing. I guess my question is why the printing changed in the first place?

@mschauer

mschauer commented Dec 2, 2020

Copy link
Copy Markdown
Member

Ref JuliaLang/julia#32859

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.

3 participants