home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / MiscKit1.2.6 / Examples / MiscString / StringTestComparing.m < prev    next >
Encoding:
Text File  |  1994-01-15  |  793 b   |  26 lines

  1. //
  2. // StringTestComparing.m -- test out the String class' Comparing category
  3. //        Written by Don Yacktman (c) 1994 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This program is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #define COSTRINGS 1
  15. void testMiscStringComparing()
  16. {
  17.     id string[COSTRINGS]; int i;
  18.     printf("***** Testing MiscStringComparing category\n");
  19.  
  20. // Test MiscStringComparing.m methods:
  21.     string[0] = [MiscString newWithString:""];
  22.  
  23.     for (i=0; i<COSTRINGS; i++) [string[i] free];
  24. }
  25.  
  26.