ScenicFramework / scenic

Core Scenic library
Apache License 2.0
1.99k stars 137 forks source link

Fix tests on Elixir 1.15 #335

Closed axelson closed 1 year ago

axelson commented 1 year ago

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

Checklist

axelson commented 1 year ago

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