test_path

Crates.iotest_path
lib.rstest_path
version0.0.1
sourcesrc
created_at2023-04-15 15:22:11.887365
updated_at2023-04-15 15:22:11.887365
descriptionTest-Path
homepage
repositoryhttps://github.com/kerwin612/test_path
max_upload_size
id840006
size3,576
Kerwin Bryant (kerwin612)

documentation

README

test_path

Test-Path

Usage

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);
Commit count: 1

cargo fmt