Skip to content

Commit

Permalink
Add more cases to the storage path test
Browse files Browse the repository at this point in the history
  • Loading branch information
YgorSouza committed Aug 27, 2024
1 parent 8da57a2 commit e78a47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/eframe/src/native/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ mod tests {
#[test]
fn naive_path_matches_directories() {
use super::{directories_storage_dir, naive_storage_dir};
for app_id in ["MyApp", "My App", "my_app", "my-app"] {
for app_id in [
"MyApp", "My App", "my_app", "my-app", "My.App", "my/app", "my:app", r"my\app",
] {
assert_eq!(directories_storage_dir(app_id), naive_storage_dir(app_id));
}
}
Expand Down

0 comments on commit e78a47c

Please sign in to comment.