Fix file name test for Windows.

This commit is contained in:
Sergio Benitez 2021-04-04 00:12:02 -07:00
parent c280a52a51
commit 8d4d01106e
1 changed files with 2 additions and 1 deletions

View File

@ -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);