package org.broad.igv.track;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created by IntelliJ IDEA.
 * User: jacob
 * Date: 2011/12/14
 */
public class WindowFunctionTest {

    @Test
    public void testGetWindowName() throws Exception {

        WindowFunction wf = WindowFunction.percentile10;
        //System.out.println(wf.toString()); // "percentile10"
        //System.out.println(wf.getDisplayName());    // "10th Percentile"
        //System.out.println(wf.name());    // "percentile10"

        WindowFunction twf = WindowFunction.getWindowFunction("percentile10");

        assertEquals(wf, twf);
    }
}

@@ -1,8 +1,557 @@
+/*%0A * Copyright (c) 2007-2012 The Broad Institute, Inc.%0A * SOFTWARE COPYRIGHT NOTICE%0A * This software and its documentation are the copyright of the Broad Institute, Inc. All rights are reserved.%0A *%0A * This software is supplied without any warranty or guaranteed support whatsoever. The Broad Institute is not responsible for its use, misuse, or functionality.%0A *%0A * This software is licensed under the terms of the GNU Lesser General Public License (LGPL),%0A * Version 2.1 which is available at http://www.opensource.org/licenses/lgpl-2.1.php.%0A */%0A%0A
 package 
@@ -875,208 +875,8 @@
 e10;
-%0A        //System.out.println(wf.toString()); // %22percentile10%22%0A        //System.out.println(wf.getDisplayName());    // %2210th Percentile%22%0A        //System.out.println(wf.name());    // %22percentile10%22
 %0A%0A  
@@ -936,17 +936,22 @@
 nction(%22
-p
+10th P
 ercentil
@@ -951,18 +951,16 @@
 rcentile
-10
 %22);%0A%0A   

Fix WindowFunctionTest