To make a simple QA test for the ndex
program, sort the Unix system dictionary, for example, "sort
-u /usr/local/lib/dict/websters > db" to make a database,
then "ndex db" and type some words to look
up. Alternatively, "ndex db < db > output" should look
up every word in the dictionary, and the "output" file
should be identical, in every respect, to the database file,
"db".
To make a simple QA test for the ndex,
program with large database files, again, just sort multiple
instances of the the Unix system dictionary, for example,
"sort /usr/local/lib/dict/websters
/usr/local/lib/dict/websters ... > db" then, again, "ndex
db < db > output" and compare the "db" file with the
"output" file. Also, using the -P option, the "output" file
should be null, since all words should be found.
To make a simple QA test for the ndex
program with a large tab delimited flat file database, use
the Unix paste(1) command, for example, "paste websters
websters > db" will make a tab delimited file of all the
words in the Unix system dictionary. Then using partial
keys, "ndex -e db < websters.tab > output". The
database file, "db", and the output file, "output" will not
compare precisely unless the query file, "websters.tab"
contains the trailing tab space for each word.
A license is hereby granted to reproduce this software
source code and to create executable versions from this source
code for personal, non-commercial use. The copyright notice
included with the software must be maintained in all copies
produced.
THIS PROGRAM IS PROVIDED "AS IS". THE AUTHOR PROVIDES NO
WARRANTIES WHATSOEVER, EXPRESSED OR IMPLIED, INCLUDING
WARRANTIES OF MERCHANTABILITY, TITLE, OR FITNESS FOR ANY
PARTICULAR PURPOSE. THE AUTHOR DOES NOT WARRANT THAT USE OF
THIS PROGRAM DOES NOT INFRINGE THE INTELLECTUAL PROPERTY
RIGHTS OF ANY THIRD PARTY IN ANY COUNTRY.
So there.
Copyright © 1994-2007, John Conover, All Rights
Reserved.
Comments and/or bug reports should be addressed to:
- john@email.johncon.com
- http://www.johncon.com/
- http://www.johncon.com/ntropix/
- http://www.johncon.com/ndustrix/
- http://www.johncon.com/nformatix/
- http://www.johncon.com/ndex/
- John Conover
- john@email.johncon.com
- January 6, 2005
|