Skip to content

Commit

Permalink
Fix test & add exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Jul 10, 2016
1 parent a3db1b4 commit 50b0b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ class ClonotypeSearchSummary {
}

ClonotypeCounter getCounter(List<String> columnNameSequence, List<String> columnValueSequence) {
if (columnNameSequence.size() != columnValueSequence.size()) {
throw new RuntimeException("Column name and column value list lengths should match.")
}
getCounters(columnNameSequence)[columnValueSequence.join("\t")]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ClonotypeSearchSummaryTest {
assert summary.totalCounter.unique > 0

def getCounter = { List<String> values ->
summary.getCounter(colNames, values)
summary.getCounter(colNames[0..<values.size()], values)
}

// we only have viral infection in legacy db
Expand Down

0 comments on commit 50b0b61

Please sign in to comment.