We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b9c78 commit bb96395Copy full SHA for bb96395
lrpar/cttests/src/lib.rs
@@ -332,13 +332,14 @@ fn test_grmtools_section_files() {
332
let out_dir = env::var("OUT_DIR").unwrap();
333
let cttests_l_glob = format!("{out_dir}/*.l");
334
let cttests_y_glob = format!("{out_dir}/*.y");
335
-
336
- for file_path in glob(&examples_l_glob)
+ let files = glob(&examples_l_glob)
337
.unwrap()
338
.chain(glob(&examples_y_glob).unwrap())
339
.chain(glob(&cttests_l_glob).unwrap())
340
.chain(glob(&cttests_y_glob).unwrap())
341
- {
+ .collect::<Vec<_>>();
+ assert!(!files.is_empty());
342
+ for file_path in files {
343
let file_path = file_path.unwrap();
344
let mut s = String::new();
345
let mut f = File::open(&file_path).unwrap();
0 commit comments