-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SuggestedSpellings extended and renamed to HELP_SEARCH_ALTERNATIVES
Now it also ensures that the search for system setters and testers such as e.g. ?SetIsMapping and ?HasIsMapping will return corresponding attributes and properties. e.g. IsMapping.
- Loading branch information
Alexander Konovalov
committed
Feb 16, 2017
1 parent
c5272cb
commit 06ffefa
Showing
3 changed files
with
70 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This test checks various auxiliary functions used by the help system. | ||
# | ||
# For the test that systematically checks each mahual section, see | ||
# tst/testextra/helpsys.tst | ||
# | ||
gap> START_TEST("helptools.tst"); | ||
gap> ForAll(FindMultiSpelledHelpEntries(), i -> | ||
> Length( Set( List( HELP_SEARCH_ALTERNATIVES( i[3] ), | ||
> j -> HELP_SEARCH_ALTERNATIVES(j) ) ) ) = 1 ); | ||
true | ||
gap> Length(HELP_SEARCH_ALTERNATIVES("AnalyseMetacatalogOfCataloguesOfColourizationLabelingsOfCentreBySolvableNormalisersInNormalizerCentralizersInCentre")); | ||
4096 | ||
gap> HELP_SEARCH_ALTERNATIVES("hasismapping"); | ||
[ "hasismapping", "ismapping", "setismapping" ] | ||
gap> HELP_SEARCH_ALTERNATIVES("setismapping"); | ||
[ "hasismapping", "ismapping", "setismapping" ] | ||
gap> STOP_TEST( "helptools.tst" ); |