Skip to content

Commit

Permalink
match files if present
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Dec 4, 2024
1 parent 50aca4e commit 72ae6a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ class QuiltProductTest extends QuiltSpecification {
true
}

void 'match files if present'() {
QuiltProduct product = makeProduct()
String filename = "text.txt"
QuiltProduct.writeString("test", product.pkg, filename)
expect:
product.match("*")[0].toString() == filename
product.match("*.txt")[0].toString() == filename
!product.match('temp.txt')
}

void 'overrides default README with config'() {
when:
QuiltProduct defaultREADME = makeProduct()
Expand Down

0 comments on commit 72ae6a3

Please sign in to comment.