>># 
>># Copyright 1990, 1991 by the Massachusetts Institute of Technology and
>># UniSoft Group Limited.
>># 
>># Permission to use, copy, modify, distribute, and sell this software and
>># its documentation for any purpose is hereby granted without fee,
>># provided that the above copyright notice appear in all copies and that
>># both that copyright notice and this permission notice appear in
>># supporting documentation, and that the names of MIT and UniSoft not be
>># used in advertising or publicity pertaining to distribution of the
>># software without specific, written prior permission.  MIT and UniSoft
>># make no representations about the suitability of this software for any
>># purpose.  It is provided "as is" without express or implied warranty.
>># 
>># $XConsortium: lstfnts.m,v 1.11 92/06/11 17:07:51 rws Exp $
>># 
>>#
>>TITLE XListFonts CH06
>>ASSERTION A XListFonts-1
When the patternarg argument is a string in ISO Latin-1
encoding terminated with ASCII nul, then a call to
XListFonts returns an array of strings terminated with ASCII
nul which are available font names that match the patternarg
argument and returns the number of fonts in the
actual_count_return argument.
>>STRATEGY
Set patternarg to "xtfont0"
Call XListFonts.
Verify that returned count was 1.
Verify that the returned names pointer was non-NULL.
Lower-case the returned string.
Verify that xtfont0 was returned.
>>ASSERTION A XListFonts-2
Upper and lower case characters in the patternarg argument
refer to the same font.
>>STRATEGY
Try matching with XtFoNt0
Call XListFonts.
Verify that returned count was 1.
Verify that the returned names pointer was non-NULL.
Lower-case the returned string.
Verify that xtfont0 was returned.
>>ASSERTION A XListFonts-3
Each asterisk (*) in the string is a wildcard for any
number of characters.
>>STRATEGY
Set patternarg to "x*t*t*"
Call XListFonts.
Verify that at least all the xtest fonts are returned, and
that any other returned string matches the patternarg.
>>ASSERTION A XListFonts-4
Each question mark (?) in the string is a wildcard for a
single character.
>>STRATEGY
Set patternarg to "x?f?nt?"
Call XListFonts.
Verify that returned count is at least XT_NFONTS
Verify that the xtest font names are returned.
Verify that any other name returned matches the patternarg.
>>ASSERTION A XListFonts-5
The number of fonts returned in the actual_count_return
argument will not exceed ma XListFonts s.
>>STRATEGY
Set maXListFontss to 1
Set patternarg to "*"
Verify that only one name was returned.
>>ASSERTION A XListFonts-6
When there are no available font names that match the
patternarg argument, then a call to XListFonts returns NULL.
>>STRATEGY
Set patternarg to a bad name.
Call XListFonts.
Verify that NULL is returned.
