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 tests on Elixir 1.15 #335

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Conversation

axelson
Copy link
Collaborator

@axelson axelson commented Sep 25, 2023

Description

Starts running tests on Elixir 1.15 with OTP 26

The map ordering change in OTP 26 caused many tests to break because they were implicitly relying on a not guaranteed order.

Adds machete to add a sorted_list test helper (instead of changing many assertions to be split across two statements)

Motivation and Context

Allows running the tests on the most recent version of Elixir and OTP

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature
    but make things better)

Checklist

  • Check other PRs and make sure that the changes are not done yet.

Starts running tests on Elixir 1.15 with OTP 26

The map ordering change in OTP 26 caused many tests to break because they were
implicitly relying on a not guaranteed order.

Adds machete to add a sorted_list test helper (instead of changing many
assertions to be split across two statements)
Copy link
Contributor

@crertel crertel left a comment

Choose a reason for hiding this comment

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

LGTM; also, machete looks handy, will add to my toolbox.

@axelson
Copy link
Collaborator Author

axelson commented Sep 25, 2023

Yeah I really like having machete in my toolbox! I wish it was used more often.

@axelson axelson merged commit 910d97e into ScenicFramework:main Sep 25, 2023
3 checks passed
@axelson axelson deleted the elixir-1.15 branch September 25, 2023 07:07
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.

2 participants