X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=test%2Fjalview%2Fanalysis%2Fscoremodels%2FScoreMatrixTest.java;fp=test%2Fjalview%2Fanalysis%2Fscoremodels%2FScoreMatrixTest.java;h=be8b45d385e3e7984f65f7695eecbe6f7e9f074f;hp=15bdce1784005587479d8be6649afe4042574ffa;hb=d68d427703088222c2ca6f5968affd5932143eaf;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8 diff --git a/test/jalview/analysis/scoremodels/ScoreMatrixTest.java b/test/jalview/analysis/scoremodels/ScoreMatrixTest.java index 15bdce1..be8b45d 100644 --- a/test/jalview/analysis/scoremodels/ScoreMatrixTest.java +++ b/test/jalview/analysis/scoremodels/ScoreMatrixTest.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.analysis.scoremodels; import static org.testng.Assert.assertEquals; @@ -670,7 +690,8 @@ public class ScoreMatrixTest String[] seqs2 = new String[] { seq2, seq1 }; MatrixI res2 = sm.findSimilarities(seqs2, params); assertFalse(res1.equals(res2)); - assertTrue(res2.equals(new Matrix(new double[][] + assertTrue( + res2.equals(new Matrix(new double[][] { { 16d, 3d }, { 3d, 14d } }), delta)); /* @@ -684,7 +705,8 @@ public class ScoreMatrixTest sm = new ScoreMatrix("Test", "AB".toCharArray(), scores); assertFalse(sm.isSymmetric()); // [0, 1] != [1, 0] res1 = sm.findSimilarities(seqs1, params); - assertTrue(res1.equals(new Matrix(new double[][] + assertTrue( + res1.equals(new Matrix(new double[][] { { 14d, 7d }, { 11d, 16d } }), delta)); /*