fix(lib): swapped entries in test dag.sort.topological."sorts a graph" #9
No reviewers
Labels
No labels
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/labs#9
Loading…
Reference in a new issue
No description provided.
Delete branch "austreelis/fix/lib-test-dag-sort-topo-failure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I figure it's a simple typo. This test expects entries
"a"
,"b"
,"c"
,"d"
to be lexicographically sorted but fails. The actual result is that entries are sorted in this order:c, b, a, d
. This is because the test adds the entry"b" = lib.dag.entry.between [ "c" ] [ "a" ] "b"
, i.e. after"c"
and before"a"
. I haven't checked if it was a logic error in the sort implementation, as other pieces of labs rely on it (and uselib.dag.entry.between
with the arguments flipped relative to the test, which makes sense), and the arguments of the functionlib.dag.entry.between
are named "after", then "before".Ah good catch! Thank you!