Ignore:
Timestamp:
08/16/13 11:30:17 (11 years ago)
Author:
sherbold
Message:
  • fixed JUnit test for findMax()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/ArrayToolsTest.java

    r927 r1299  
    128128        @Test 
    129129        public void testFindMax_6() throws Exception { 
    130                 int expected = -1; 
    131                  
    132                 int result = ArrayTools.findMax(null); 
     130                int expected = 9; 
     131                 
     132                double[] array = {2,3,6,1,8,9,1,1,3,15,4,15,-1}; 
     133                 
     134                int result = ArrayTools.findMax(array); 
    133135                 
    134136                assertEquals(expected, result); 
Note: See TracChangeset for help on using the changeset viewer.