Skip to content

Commit

Permalink
Merge pull request #143 from marytts/sorted-basenames-lst
Browse files Browse the repository at this point in the history
Sorted basenames.lst
  • Loading branch information
psibre authored Jul 13, 2021
2 parents 082ad42 + c68a1d7 commit 51453ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class GenerateBasenamesList extends DefaultTask {
project.fileTree(wavDir).matching {
include this.includes.getOrElse('*').collect { it + '.wav' }
exclude this.excludes.getOrElse([]).collect { it + '.wav' }
}.each { wavFile ->
}.toSorted().each { wavFile ->
def basename = wavFile.name - '.wav'
def textFile = textDir.file("${basename}.txt").get().asFile
if (!textFile.canRead()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ task testBasenames(group: 'Verification') {
doLast {
def basenamesFile = file("$buildDir/basenames.lst")
assert basenamesFile.exists()
def actual = basenamesFile.readLines() as Set
def actual = basenamesFile.readLines()
def expected = fileTree("$buildDir/wav").include('*.wav').exclude('time0023.wav', 'unused.wav').collect {
it.name - '.wav'
} as Set
}.unique().toSorted()
assert actual == expected
}
}
Expand Down

0 comments on commit 51453ba

Please sign in to comment.