Skip to content

Conversation

@moogle19
Copy link
Contributor

Couldn't think of a more elegant solution than string matching the fields of the resulting map output.
Hope that's good enough.

assert map =~ "__struct__: IO.Stream"
assert map =~ "device: nil"
assert map =~ "line_or_bytes: :line"
assert map =~ "raw: true"
Copy link
Member

Choose a reason for hiding this comment

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

I think we backported sort_maps to v1.14 but this approach is also fine :)

@josevalim josevalim merged commit 237f3bc into elixir-lang:v1.14 Mar 24, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants