diff --git a/tests/parse_uri.bats b/tests/parse_uri.bats index ef5579c..8f19af4 100644 --- a/tests/parse_uri.bats +++ b/tests/parse_uri.bats @@ -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'