Bug 172604 Total.Rank result incorrect.
The Total.rank() aggregation function should follow Excel convention, that is, the identical values should only hold one place in rank. The following table give details: Value | Rank 20 | 3 10 | 4 30 | 2 30 | 2 40 | 1
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/aggregation/TotalTest.java
assertTrue(ag.getParameterDefn()[0]);
        assertTrue(ag.getParameterDefn()[1]);
        
        ac.start();
        for(int i=0; i<doubleArray1.length; i++)
        {
            ac.onRow(new Double[]{new Double(doubleArray1[i]), new Double(weight[i])});
        }
        ac.finish();
       
        assertEquals(new Double(5.343042071197409), ac.getValue());
        
        ac.start();
        for(int i=0; i<doubleArray2.length; i++)
        {
            ac.onRow(new Double[]{new Double(doubleArray2[i]), new Double(weight[i])});
        }
        ac.finish();
        
        assertEquals(new Double(3.236104279390063), ac.getValue());
        
        ac.start();
        for(int i=0; i<str1.length; i++)
        {
            ac.onRow(new Object[]{str1[i], new Double(weight[i])});
        }
        ac.finish();
       
        assertEquals(new Double(3.236104279390063), ac.getValue());