Skip to content

Add more UnitTest functions similar to those in MonoidalCategories #1870

Description

@kamalsaleh

InstallGlobalFunction( "MonoidalCategoriesTensorProductOnObjectsAndTensorUnitTest",
function( cat, opposite, a, b )
local verbose,
u, u_op,
a_op, b_op,
a_tensor_b, a_tensor_b_op,
b_tensor_a, b_tensor_a_op;
a_op := Opposite( opposite, a );
b_op := Opposite( opposite, b );
verbose := ValueOption( "verbose" ) = true;
if CanCompute( cat, "TensorUnit" ) then
if verbose then
# COVERAGE_IGNORE_NEXT_LINE
Display( "Testing 'TensorUnit' ..." );
fi;

It would be nice to have similar functions for the various doctrines (ab-categories, linear categories, additive categories, Abelian categories, triangulated categories, ...) and probably would be even better if they somehow expose the tests and the equalities that should hold in the manual file by generating examples (maybe using RandomObject/Morphism etc ... methods).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions