-
Notifications
You must be signed in to change notification settings - Fork 112
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
Round Trip Printing. update tests for repr and show methods #470
base: master
Are you sure you want to change the base?
Conversation
@sostock i would appreciate if you could have a peek at this when you get a chance |
Co-authored-by: Sebastian Stock <[email protected]>
Co-authored-by: Sebastian Stock <[email protected]>
Co-authored-by: Sebastian Stock <[email protected]>
Co-authored-by: Sebastian Stock <[email protected]>
Co-authored-by: Sebastian Stock <[email protected]>
Co-authored-by: Sebastian Stock <[email protected]>
thanks a bunch! |
Codecov Report
@@ Coverage Diff @@
## master #470 +/- ##
==========================================
- Coverage 83.77% 82.98% -0.80%
==========================================
Files 16 16
Lines 1344 1340 -4
==========================================
- Hits 1126 1112 -14
- Misses 218 228 +10
Continue to review full report at Codecov.
|
else | ||
@test string(typeof(1.0m/s)) == | ||
"Quantity{Float64,𝐋 𝐓^-1,FreeUnits{(m, s^-1),𝐋 𝐓^-1,nothing}}" | ||
"Quantity{Float64, Unitful.Dimensions{(Unitful.Dimension{:Length}(1//1), Unitful.Dimension{:Time}(-1//1))}(), FreeUnits{(Unitful.Unit{:Meter, Unitful.Dimensions{(Unitful.Dimension{:Length}(1//1),)}()}(0, 1//1), Unitful.Unit{:Second, Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}()}(0, -1//1)), Unitful.Dimensions{(Unitful.Dimension{:Length}(1//1), Unitful.Dimension{:Time}(-1//1))}(), nothing}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (and some other tests) would need to be changed to match the old printing of type parameters (no spaces after commas), that’s why that @static if VERSION ≥ v"1.6.0-DEV.770"
exists. But IMO we could just delete these tests since the printing isn’t customized anymore.
also adds a test so that the output printed to stdout can be copy pasted (roundtripped) back into REPL
supercedes #467