Skip to content
Snippets Groups Projects
Commit bccb8d20 authored by Dato Simó's avatar Dato Simó
Browse files

htest/Types.hs: check ordering of some ADTs


In some ADT, ordering of constructors is important because a certain
meaning is attached to ordinality (e.g., "clusters with lesser AllocPolicy
are preferred").

To ensure constructor order is not accidentally changed, this commit
introduces assertions that verify the ordering of these types is as
expected.

Signed-off-by: default avatarDato Simó <dato@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent c298ed02
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment