gap-packages / Thelma

GAP Package on threshold logic.
https://gap-packages.github.io/Thelma
Other
1 stars 2 forks source link

Add standard tests for the package #1

Closed olexandr-konovalov closed 6 years ago

olexandr-konovalov commented 6 years ago

The package has no test files. It is recommended to have a TestFile component in PackageInfo.g to specify a short test (to run for no more than several minutes) which may be used to check that a package works as expected. For deposited packages, these tests are run regularly as a part of the standard GAP test suite. Please see ?TestPackage, ?Tests files for a GAP package and also ?TestDirectory for more information. You can find a sample setup in the example package at https://github.com/gap-packages/example.

olexandr-konovalov commented 5 years ago

Thanks. I've tried loading it in GAP 4.9.3, and it works like this:

gap> LoadPackage("thelma");
----------------------------------------------------------------
Loading  Thelma 1.00, a package for threshold logic
For help, type: ?Thelma: 
----------------------------------------------------------------
true
gap> TestPackage("thelma");
Architecture: x86_64-apple-darwin16.7.0-default64

testing: /Users/alexk/Library/Preferences/GAP/pkg/Thelma/tst/test-examples.tst
     184 ms (108 ms GC) and 1.73MB allocated for test-examples.tst
testing: /Users/alexk/Library/Preferences/GAP/pkg/Thelma/tst/test-n-3.tst
     879 ms (98 ms GC) and 23.8MB allocated for test-n-3.tst
-----------------------------------
total      1063 ms (206 ms GC) and 25.6MB allocated

#I  No errors detected while testing