Skip to content

Commit

Permalink
bump to kseq 0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
angelovangel committed Jul 8, 2024
1 parent 730bb6f commit 1151bba
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ hyperfine*
.Rhistory
rplot.R
.DS_store
fofn

4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
kseq = "0.5.2"
kseq = "0.5.3"
clap = "3.2.25"
prettytable-rs = "^0.10"
indicatif = "0.17.8"
Expand Down
14 changes: 13 additions & 1 deletion tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn find_content_in_len() -> Result<(), Box<dyn std::error::Error>> {
}

#[test]
fn multiple_input() -> Result<(), Box<dyn std::error::Error>> {
fn test_multifile_input() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("faster2")?;
cmd.arg("-ts").arg("tests/test.fastq").arg("tests/test2.fastq.gz");

Expand All @@ -40,3 +40,15 @@ fn multiple_input() -> Result<(), Box<dyn std::error::Error>> {

Ok(())
}

#[test]
fn test_fofn_input() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("faster2")?;
cmd.arg("-ts").arg("tests/fofn");

cmd.assert()
.success()
.stdout(predicate::str::contains("30\t34627\t0\t165"));

Ok(())
}
2 changes: 2 additions & 0 deletions tests/fofn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test.fastq
test2.fastq.gz

0 comments on commit 1151bba

Please sign in to comment.