X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/c91413e6acbc8d157ff52ceb8cd78cee97403584..20ba6b0b276f584060415023d68b59917de1e7e6:/test/tvec-types.c diff --git a/test/tvec-types.c b/test/tvec-types.c index 695d66d..3afa808 100644 --- a/test/tvec-types.c +++ b/test/tvec-types.c @@ -1764,12 +1764,31 @@ static const struct tvec_iassoc bool_assoc[] = { { "y", 1 }, { "on", 1 }, - { 0, 0 } + TVEC_ENDENUM }; const struct tvec_ienuminfo tvenum_bool = { "bool", bool_assoc, &tvrange_int }; +static const struct tvec_iassoc cmp_assoc[] = { + { "<", -1 }, + { "less", -1 }, + { "lt", -1 }, + + { "=", 0 }, + { "equal", 0 }, + { "eq", 0 }, + + { ">", +1 }, + { "greater", +1 }, + { "gt", +1 }, + + TVEC_ENDENUM +}; + +const struct tvec_ienuminfo tvenum_cmp = + { "cmp", cmp_assoc, &tvrange_int }; + /* --- @tvec_claimeq_tenum@ --- * * * Arguments: @struct tvec_state *tv@ = test-vector state