mirror of https://github.com/rwf2/Rocket.git
Fix file name test for Windows.
This commit is contained in:
parent
c280a52a51
commit
8d4d01106e
|
@ -102,7 +102,8 @@ impl FileName {
|
||||||
/// assert_eq!(name.as_str(), Some("foo"));
|
/// assert_eq!(name.as_str(), Some("foo"));
|
||||||
///
|
///
|
||||||
/// let name = FileName::new("b:c");
|
/// let name = FileName::new("b:c");
|
||||||
/// assert_eq!(name.as_str(), Some("b"));
|
/// #[cfg(unix)] assert_eq!(name.as_str(), Some("b"));
|
||||||
|
/// #[cfg(not(unix))] assert_eq!(name.as_str(), Some("c"));
|
||||||
///
|
///
|
||||||
/// let name = FileName::new("//./.<>");
|
/// let name = FileName::new("//./.<>");
|
||||||
/// assert_eq!(name.as_str(), None);
|
/// assert_eq!(name.as_str(), None);
|
||||||
|
|
Loading…
Reference in New Issue