sanity

categories(instance)

Checks that the preferences and categories are consistent.

Parameters:

instance (preflibtools.instances.preflibinstance.CategoricalInstance) – The instance to draw.

handle_my_assert(left, right, error_msg, error_list, op=<built-in function eq>)
matching(instance)

Checks that the matching preferences are consistent.

Parameters:

instance (preflibtools.instances.preflibinstance.MatchingInstance) – The instance to draw.

metadata(instance)

Checks that the basic metadata are in line with the content of the instance.

Parameters:

instance (preflibtools.instances.preflibinstance.PrefLibInstance) – The instance to test.

my_assert(condition, error, error_list)
orders(instance)

Checks that the orders are consistent.

Parameters:

instance (preflibtools.instances.preflibinstance.OrdinalInstance) – The instance to draw.