Revision 11474

View differences:

trunk/libraries/libIverUtiles/src-test/com/iver/utiles/search/TestBinarySearchUsingFirstCharacters.java
630 630
			results.add(new Item("extWFS2"));
631 631
			results.add(new Item("extWFS2"));
632 632
			results.add(new Item("extWFS2"));
633
			results.add(new Item("extwfs2"));
633 634

  
634 635
			System.out.println("Test 14:\nText: " + text + "\nResults of the search: " + list + "\nResults expected: " + results);
635 636
				
......
744 745
			e.printStackTrace();
745 746
		}
746 747
	}
748

  
749
	
750
	/**
751
	 * A test
752
	 */
753
	public void test19() {
754
		try {
755
			text = "?AND?";
756
			list = BinarySearchUsingFirstCharacters.doSearchIgnoringCaseSensitive(text, v1);
757
			
758
			// List of results
759
			results = new ArrayList();
760
			results.add(new Item("?AND?"));
761
			results.add(new Item("?and?"));
762
			results.add(new Item("?and?"));
763
			results.add(new Item("?and?"));
764

  
765
			System.out.println("Test 19:\nText: " + text + "\nResults of the search: " + list + "\nResults expected: " + results);
766
				
767
			if (CompareLists.compareIgnoringCaseSensitive(list, results)) {
768
				System.out.println("Op: doSearchIgnoringCaseSensitive(String, Vector) -> OK");
769
			} else {
770
				System.out.println("Op: doSearchIgnoringCaseSensitive(String, Vector) -> FAILED");
771
				fail();
772
			}
773
		} catch (Exception e) {
774
			e.printStackTrace();
775
		}
776
	}
777

  
747 778
	///// END TEST OPERATION: doSearchWithoutConsideringCaseSensitive(String, Vector) /////
748 779
	
749 780
	///// TEST OPERATION: doSearchConsideringCaseSensitive(String, Vector, Comparator) /////

Also available in: Unified diff