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 370599d commit 8cd2a5aCopy full SHA for 8cd2a5a
crates/tmc-langs-cli/tests/integration.rs
@@ -40,8 +40,12 @@ fn sorted_list_of_files(path: &impl AsRef<Path>) -> Vec<String> {
40
// wrapper for all sample exercise tests
41
fn test(f: impl Fn(&Path)) {
42
insta::with_settings!({filters => vec![
43
- // replace all /tmp/ paths which vary each test run
44
- (r"/tmp/\S*", "[PATH]")
+ // replace all /tmp/ (linux), /var/ (macos) and C:\[..]\Temp\ (win) paths which vary each test run
+ (r"/tmp/\S*", "[PATH]"),
45
+ (r"/var/\S*", "[PATH]"),
46
+ (r"C:\\\S*\\Temp\\\S*", "[PATH]"),
47
+ // replace Windows-style path separators
48
+ (r"\\", "/"),
49
]}, {
50
insta::glob!("sample_exercises/*/*", |exercise| {
51
f(exercise)
0 commit comments