fix test failure on windows
"a:" failed; this test wants a relative filename so isDrive avoids it Note that on linux, isDrive "/foo" is true. This test also filters out absolute paths already, so that is ok. This commit was sponsored by Brock Spratlen on Patreon.
This commit is contained in:
		
					parent
					
						
							
								79135e4a92
							
						
					
				
			
			
				commit
				
					
						e92117bfd0
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -83,7 +83,7 @@ prop_viewedFile_roundtrips :: TestableFilePath -> Bool
 | 
			
		|||
prop_viewedFile_roundtrips tf
 | 
			
		||||
	-- Relative filenames wanted, not directories.
 | 
			
		||||
	| any (isPathSeparator) (end f ++ beginning f) = True
 | 
			
		||||
	| isAbsolute f = True
 | 
			
		||||
	| isAbsolute f || isDrive f = True
 | 
			
		||||
	| otherwise = dir == dirFromViewedFile (viewedFileFromReference f)
 | 
			
		||||
  where
 | 
			
		||||
	f = fromTestableFilePath tf
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue