Skip to content

Commit

Permalink
initial commit for unused motif.rs module
Browse files Browse the repository at this point in the history
just to get the test to pass
  • Loading branch information
wdecoster committed Mar 2, 2024
1 parent 2f97eba commit dff0873
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/motif.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// write a function that takes a long string like CAGCAGCAGCAGCGGCGGCGGCAGCAGCAG and converts it to a condensed representation like (CAG)4(CGG)3(CAG)3
// the function should identify repeated parts and replace them with (repeat)number

fn create_motif(seq: &str) -> String {
unimplemented!()
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
#[ignore]
fn test_create_motif() {
assert_eq!(
create_motif("CAGCAGCAGCAGCGGCGGCGGCAGCAGCAG"),
"(CAG)4(CGG)3(CAG)3"
);
}
}

0 comments on commit dff0873

Please sign in to comment.