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: Enum values doesn't display UInt8 correctly #29035

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

mimame
Copy link
Contributor

@mimame mimame commented Sep 4, 2018

I started to learn Julia yesterday but I think that I've fixed #28965 bug

I hope to be useful

@KristofferC
Copy link
Sponsor Member

Hello and welcome to Julia. Great first contribution!

test/enums.jl Outdated
@test repr("text/plain", UI8) == "Enum $(string(UI8)):\nten = 0x0a\nthr = 0x03\nsevn = 0x07"
@enum UI8::UInt8 ten=0x0A thr=0x03 sevn=0x07 fiftn=0xF0
@test repr("text/plain", UI8) == "Enum $(string(UI8)):\nten = 0x0a\nthr = 0x03\nsevn = 0x07\nfiftn = 0xf0"
@test repr("text/plain", ten) == "$(string(ten))::$(string(UI8)) = 0x0a"
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this should be just UI8 instead of $(string(UI8)).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the feedback. Fixed

@fredrikekre
Copy link
Member

Welcome!

@fredrikekre fredrikekre merged commit 807ae71 into JuliaLang:master Sep 5, 2018
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.

Enum values doesn't display UInt8 correctly
4 participants