Test properties updated

This commit is contained in:
kivancgnlp 2025-12-11 10:51:44 +03:00
parent e916628d84
commit 3314022480
2 changed files with 22 additions and 0 deletions

View File

@ -1206,6 +1206,7 @@ Add `AsRef<str>` or `AsMut<u32>` as a trait bound to the functions."""
[[exercises]] [[exercises]]
name = "file_io1" name = "file_io1"
dir = "24_file_io" dir = "24_file_io"
test = false
hint = """ hint = """
Basic File Reading Basic File Reading
""" """
@ -1213,6 +1214,7 @@ Basic File Reading
[[exercises]] [[exercises]]
name = "file_io2" name = "file_io2"
dir = "24_file_io" dir = "24_file_io"
test = false
hint = """ hint = """
Buffered Reading & Writing Buffered Reading & Writing
""" """
@ -1220,6 +1222,7 @@ Buffered Reading & Writing
[[exercises]] [[exercises]]
name = "file_io3" name = "file_io3"
dir = "24_file_io" dir = "24_file_io"
test = false
hint = """ hint = """
Path Manipulation & Metadata Path Manipulation & Metadata
""" """

View File

@ -14,3 +14,22 @@ fn main() {
} }
} }
} }
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_working_directory() {
let working_directory_result = std::path::Path::new(".").canonicalize();
match working_directory_result {
Ok(working_directory) => {
println!("The working directory is {:?}", working_directory);
}
Err(error) => {
println!("Error: {:?}", error);
}
}
}
}