@@ -0,0 +1,907 @@
+package mendel.test;%0A%0Aimport mendel.tree.Kmer;%0Aimport mendel.tree.VPNode;%0Aimport org.junit.After;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class VPNodeTest %7B%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testNth_element() throws Exception %7B%0A        VPNode%3CKmer%3E test = new VPNode%3C%3E(10);%0A        /* Create list of k-mers */%0A        Kmer%5B%5D array = new Kmer%5B7%5D;%0A        array%5B4%5D = new Kmer(%22AAAAAAA%22);%0A        array%5B1%5D = new Kmer(%22AAAAAAC%22);%0A        array%5B2%5D = new Kmer(%22AAAAACC%22);%0A        array%5B5%5D = new Kmer(%22AAAACCC%22);%0A        array%5B0%5D = new Kmer(%22AAACCCC%22);%0A        array%5B3%5D = new Kmer(%22ACCCCCC%22);%0A        array%5B6%5D = new Kmer(%22AACCCCC%22);%0A%0A        int lower = 0, upper = 6, n = array.length/2;%0A        test.nth_element(array, lower, upper, n, array%5B4%5D);%0A        assertEquals(new Kmer(%22AAAACCC%22).toString(), array%5B5%5D.toString());%0A    %7D%0A%7D

Add VPNodeTest