feat: Test empty port in URI
This commit is contained in:
		@@ -184,6 +184,19 @@ setup() {
 | 
			
		||||
    [ "$fragment" == '' ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@test "rsync://user:password@host:/p/a/th" {
 | 
			
		||||
    . uri.sh
 | 
			
		||||
    parse_uri 'rsync://user:password@host:/p/a/th'
 | 
			
		||||
    [ "$scheme" == 'rsync' ]
 | 
			
		||||
    [ "$hostname" == 'host' ]
 | 
			
		||||
    [ "$port" == '' ]
 | 
			
		||||
    [ "$path" == '/p/a/th' ]
 | 
			
		||||
    [ "$username" == 'user' ]
 | 
			
		||||
    [ "$password" == 'password' ]
 | 
			
		||||
    [ "$query" == '' ]
 | 
			
		||||
    [ "$fragment" == '' ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@test "rsync://user:password@host:~/backups" {
 | 
			
		||||
    . uri.sh
 | 
			
		||||
    parse_uri 'rsync://user:password@host:~/backups'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user