Skip to content

Commit

Permalink
merge SA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed May 22, 2024
2 parents 41d6c45 + bf4dba0 commit 6bf49d0
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 11 deletions.
10 changes: 5 additions & 5 deletions sa-index/src/peptide_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ mod tests {
#[test]
fn test_serialize_output_data() {
let output_data = OutputData {
result: vec![ 1, 2, 3 ]
result: vec![1, 2, 3]
};

let generated_json = serde_json::to_string(&output_data).unwrap();
Expand Down Expand Up @@ -322,8 +322,8 @@ mod tests {
#[test]
fn test_serialize_protein_info() {
let protein_info = ProteinInfo {
taxon: 1,
uniprot_accession: "P12345".to_string(),
taxon: 1,
uniprot_accession: "P12345".to_string(),
functional_annotations: vec!["GO:0001234".to_string(), "GO:0005678".to_string()]
};

Expand All @@ -336,8 +336,8 @@ mod tests {
#[test]
fn test_serialize_search_only_result() {
let search_result = SearchOnlyResult {
sequence: "MSKIAALLPSV".to_string(),
proteins: vec![],
sequence: "MSKIAALLPSV".to_string(),
proteins: vec![],
cutoff_used: true
};

Expand Down
Loading

0 comments on commit 6bf49d0

Please sign in to comment.