* - "any"
* - "https"
* - "email"
- * - "moat"
+ * - "settings"
*
* If the option string is unrecognised, a warning will be logged and 0 is
* returned. If the option string contains an invalid character, -1 is
return 0;
const char *RECOGNIZED[] = {
- "none", "any", "https", "email", "moat"
+ "none", "any", "https", "email", "settings"
};
unsigned i;
for (i = 0; i < ARRAY_LENGTH(RECOGNIZED); ++i) {
tt_int_op(check_bridge_distribution_setting("any"), OP_EQ, 0);
tt_int_op(check_bridge_distribution_setting("https"), OP_EQ, 0);
tt_int_op(check_bridge_distribution_setting("email"), OP_EQ, 0);
- tt_int_op(check_bridge_distribution_setting("moat"), OP_EQ, 0);
+ tt_int_op(check_bridge_distribution_setting("settings"), OP_EQ, 0);
// Check all the possible values we support right now with weird casing.
tt_int_op(check_bridge_distribution_setting("NoNe"), OP_EQ, 0);
tt_int_op(check_bridge_distribution_setting("anY"), OP_EQ, 0);
tt_int_op(check_bridge_distribution_setting("hTTps"), OP_EQ, 0);
tt_int_op(check_bridge_distribution_setting("emAIl"), OP_EQ, 0);
- tt_int_op(check_bridge_distribution_setting("moAt"), OP_EQ, 0);
+ tt_int_op(check_bridge_distribution_setting("setTIngS"), OP_EQ, 0);
// Invalid values.
tt_int_op(check_bridge_distribution_setting("x\rx"), OP_EQ, -1);