-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stability in core library List sorting functions
+ Add an automated test case for a scenario where we found `List.sortBy` violating the stability constraint. + Fix the list sorting function on the productive side to maintain stability.
- Loading branch information
Showing
5 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../test-and-train/elm-interactive-scenarios-core/elm-core-list/steps/634/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[(17,[]),(1,["c"]),(13,["d"]),(11,["e"]),(0,["a","b"])] |
2 changes: 2 additions & 0 deletions
2
...ment/test-and-train/elm-interactive-scenarios-core/elm-core-list/steps/634/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
List.sortBy (\( _, dependencies ) -> List.length dependencies) | ||
[ (0, ["a","b"]), (1, ["c"]), (13, ["d"]), (17, []), (11, ["e"]) ] |
1 change: 1 addition & 0 deletions
1
.../test-and-train/elm-interactive-scenarios-core/elm-core-list/steps/635/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[(23,[]),(17,[]),(1,["c"]),(13,["d"]),(11,["e"]),(0,["a","b"])] |
2 changes: 2 additions & 0 deletions
2
...ment/test-and-train/elm-interactive-scenarios-core/elm-core-list/steps/635/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
List.sortBy (\( _, dependencies ) -> List.length dependencies) | ||
[ (23, []), (0, ["a","b"]), (1, ["c"]), (13, ["d"]), (17, []), (11, ["e"]) ] |