File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -555,3 +555,15 @@ void test_url_parse__ipv6_invalid_addresses(void)
555555 /* Invalid character inside address */
556556 cl_git_fail_with (GIT_EINVALIDSPEC , git_net_url_parse (& conndata , "http://[fe8o::dcad:beff:fe00:0001]/resource" ));
557557}
558+
559+ void test_url_parse__spaces_in_the_name (void )
560+ {
561+ cl_git_pass (git_net_url_parse (& conndata , "https://libgit2@dev.azure.com/libgit2/test/_git/spaces%20in%20the%20name" ));
562+ cl_assert_equal_s (conndata .scheme , "https" );
563+ cl_assert_equal_s (conndata .host , "dev.azure.com" );
564+ cl_assert_equal_s (conndata .port , "443" );
565+ cl_assert_equal_s (conndata .path , "/libgit2/test/_git/spaces%20in%20the%20name" );
566+ cl_assert_equal_s (conndata .username , "libgit2" );
567+ cl_assert_equal_p (conndata .password , NULL );
568+ cl_assert_equal_i (git_net_url_is_default_port (& conndata ), 1 );
569+ }
You can’t perform that action at this time.
0 commit comments