NdeX_medium.jpg

 

Program for Binary Searching a Constant Flat File Database:

Tests


Home | Installation | Usage | FAQs | Utilities | Architecture | QA | Tests | Links | License | Author | Download | Thanks



home.jpg
installation.jpg
usage.jpg
FAQs.jpg
utilities.jpg
architecture.jpg
QA.jpg
tests.jpg
links.jpg
license.jpg
author.jpg
download.jpg
thanks.jpg
  1. 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".

  2. 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.

  3. 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



Home | Installation | Usage | FAQs | Utilities | Architecture | QA | Tests | Links | License | Author | Download | Thanks


Copyright © 1994-2007 John Conover, john@email.johncon.com. All Rights Reserved.
Last modified: Thu Mar 22 18:09:40 PDT 2007 $Id: tests.html,v 1.0 2007/03/23 01:11:10 conover Exp $
Valid HTML 4.0!