//! A test suite to parse everything in `parse-fail` and assert that it matches //! the `*.err` file it generates. //! //! Use `BLESS=1` in the environment to auto-update `*.err` files. Be sure to //! look at the diff!
use libtest_mimic::{Arguments, Trial}; use std::env; use std::path::{Path, PathBuf};
fn find_tests(path: &Path, tests: &mut Vec<PathBuf>) { for f in path.read_dir().unwrap() { let f = f.unwrap(); // The .wat.err files contain relative file paths with forward slashes. // On Windows we need to normalize the paths, otherwise BLESS will // overwrite all .err files with updated paths. let path: PathBuf = f
.path()
.to_string_lossy()
.replace(std::path::MAIN_SEPARATOR, "/")
.into(); if f.file_type().unwrap().is_dir() {
find_tests(&path, tests); continue;
} match path.extension().and_then(|s| s.to_str()) {
Some("wat") => {}
_ => continue,
}
tests.push(path);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.