Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/corelg/tst/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 7.6.2024 mit Größe 1 kB image not shown  

Quelle  testall.g   Sprache: unbekannt

 
LoadPackage("corelg");

# There is a bug in GAP <= 4.10 where factorizing certain polynomials over the
# cyclotomics triggers an incorrect assertion if the assertion level is 2 or
# higher. Unfortunately, the manual tests of corelg trigger the problematic
# case, and START_TEST sets the assertion level to 2 by default. To workaround
# that, we modify START_TEST to only set the assertion level to 1.
#
# Ideally, we'd restrict this hack to GAP < 4.11, by using a check like
#    if not CompareVersionNumbers(GAPInfo.Version, "4.11") then ... fi;
# however, the CI tests we use right now have GAP versions that don't set
# GAPInfo.Version correctly. So for now, we just always enable this workaround.
original_START_TEST := START_TEST;
START_TEST := function( name )
    original_START_TEST( name );
    SetAssertionLevel( 1 );
end;

# run the tests
TestDirectory( DirectoriesPackageLibrary("corelg", "tst"), rec(exitGAP := true,
            testOptions := rec( compareFunction := "uptowhitespace" ) ) );
FORCE_QUIT_GAP(1);

[ Dauer der Verarbeitung: 0.23 Sekunden  (vorverarbeitet)  ]