@@@ wip mostly xfail
[mLib] / test / tvec-types.c
index 695d66d..3afa808 100644 (file)
@@ -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