Crates.io | test_path |
lib.rs | test_path |
version | 0.0.1 |
source | src |
created_at | 2023-04-15 15:22:11.887365 |
updated_at | 2023-04-15 15:22:11.887365 |
description | Test-Path |
homepage | |
repository | https://github.com/kerwin612/test_path |
max_upload_size | |
id | 840006 |
size | 3,576 |
Test-Path
dependency:
cargo add test_path
import
use test_path::is_valid;
call
assert_eq!(is_valid("1"), true);
assert_eq!(is_valid("C:/测试"), true);
assert_eq!(is_valid("C:/test"), true);
assert_eq!(is_valid("X:/x/y/z"), true);
assert_eq!(is_valid(r"C:/te|st"), false);