|
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).
CAP_project/MonoidalCategories/gap/MonoidalCategoriesTensorProductOnObjectsAndTensorUnitTest.gi
Lines 7 to 31 in 9c6986f
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/Morphismetc ... methods).