refactor: deduplicate allocation code in tests
This commit is contained in:
parent
f09dc3cf46
commit
074e991280
5 changed files with 34 additions and 134 deletions
|
|
@ -216,8 +216,7 @@ pub fn test_language_corpus(
|
|||
}
|
||||
|
||||
true
|
||||
})
|
||||
.unwrap();
|
||||
});
|
||||
|
||||
if !passed {
|
||||
failure_count += 1;
|
||||
|
|
@ -312,7 +311,7 @@ pub fn test_language_corpus(
|
|||
}
|
||||
|
||||
true
|
||||
}).unwrap();
|
||||
});
|
||||
|
||||
if !passed {
|
||||
failure_count += 1;
|
||||
|
|
@ -434,8 +433,7 @@ fn test_feature_corpus_files() {
|
|||
println!();
|
||||
false
|
||||
}
|
||||
})
|
||||
.unwrap();
|
||||
});
|
||||
|
||||
if !passed {
|
||||
failure_count += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue