We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef95bbe commit abc690bCopy full SHA for abc690b
tests/parsing/samples.rs
@@ -3,10 +3,8 @@ use std::path::Path;
3
4
use technique::parsing;
5
6
-#[test]
7
-fn ensure_parse() {
8
- let dir = Path::new("tests/samples/");
9
-
+fn check_directory(dir: &Path) {
+ // Ensure the directory exists
10
assert!(dir.exists(), "samples directory missing");
11
12
let entries = fs::read_dir(dir).expect("Failed to read samples directory");
@@ -49,3 +47,9 @@ fn ensure_parse() {
49
47
);
50
48
}
51
+
+#[test]
52
+fn ensure_parse() {
53
+ check_directory(Path::new("tests/samples/"));
54
+ check_directory(Path::new("examples/minimal/"));
55
+}
0 commit comments