summaryrefslogtreecommitdiff
path: root/tests-clar/network/remotes.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/network/remotes.c')
-rw-r--r--tests-clar/network/remotes.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c
index 5dc5f3387..9d414c914 100644
--- a/tests-clar/network/remotes.c
+++ b/tests-clar/network/remotes.c
@@ -27,8 +27,8 @@ void test_network_remotes__cleanup(void)
void test_network_remotes__parsing(void)
{
- cl_assert_strequal(git_remote_name(_remote), "test");
- cl_assert_strequal(git_remote_url(_remote), "git://github.com/libgit2/libgit2");
+ cl_assert_equal_s(git_remote_name(_remote), "test");
+ cl_assert_equal_s(git_remote_url(_remote), "git://github.com/libgit2/libgit2");
}
void test_network_remotes__parsing_ssh_remote(void)
@@ -53,24 +53,24 @@ void test_network_remotes__unsupported_transport_methods_are_unsupported(void)
void test_network_remotes__refspec_parsing(void)
{
- cl_assert_strequal(git_refspec_src(_refspec), "refs/heads/*");
- cl_assert_strequal(git_refspec_dst(_refspec), "refs/remotes/test/*");
+ cl_assert_equal_s(git_refspec_src(_refspec), "refs/heads/*");
+ cl_assert_equal_s(git_refspec_dst(_refspec), "refs/remotes/test/*");
}
void test_network_remotes__set_fetchspec(void)
{
cl_git_pass(git_remote_set_fetchspec(_remote, "refs/*:refs/*"));
_refspec = git_remote_fetchspec(_remote);
- cl_assert_strequal(git_refspec_src(_refspec), "refs/*");
- cl_assert_strequal(git_refspec_dst(_refspec), "refs/*");
+ cl_assert_equal_s(git_refspec_src(_refspec), "refs/*");
+ cl_assert_equal_s(git_refspec_dst(_refspec), "refs/*");
}
void test_network_remotes__set_pushspec(void)
{
cl_git_pass(git_remote_set_pushspec(_remote, "refs/*:refs/*"));
_refspec = git_remote_pushspec(_remote);
- cl_assert_strequal(git_refspec_src(_refspec), "refs/*");
- cl_assert_strequal(git_refspec_dst(_refspec), "refs/*");
+ cl_assert_equal_s(git_refspec_src(_refspec), "refs/*");
+ cl_assert_equal_s(git_refspec_dst(_refspec), "refs/*");
}
void test_network_remotes__save(void)
@@ -90,13 +90,13 @@ void test_network_remotes__save(void)
_refspec = git_remote_fetchspec(_remote);
cl_assert(_refspec != NULL);
- cl_assert_strequal(git_refspec_src(_refspec), "refs/heads/*");
- cl_assert_strequal(git_refspec_dst(_refspec), "refs/remotes/upstream/*");
+ cl_assert_equal_s(git_refspec_src(_refspec), "refs/heads/*");
+ cl_assert_equal_s(git_refspec_dst(_refspec), "refs/remotes/upstream/*");
_refspec = git_remote_pushspec(_remote);
cl_assert(_refspec != NULL);
- cl_assert_strequal(git_refspec_src(_refspec), "refs/heads/*");
- cl_assert_strequal(git_refspec_dst(_refspec), "refs/heads/*");
+ cl_assert_equal_s(git_refspec_src(_refspec), "refs/heads/*");
+ cl_assert_equal_s(git_refspec_dst(_refspec), "refs/heads/*");
}
void test_network_remotes__fnmatch(void)
@@ -111,7 +111,7 @@ void test_network_remotes__transform(void)
memset(ref, 0x0, sizeof(ref));
cl_git_pass(git_refspec_transform(ref, sizeof(ref), _refspec, "refs/heads/master"));
- cl_assert_strequal(ref, "refs/remotes/test/master");
+ cl_assert_equal_s(ref, "refs/remotes/test/master");
}
void test_network_remotes__transform_r(void)
@@ -119,7 +119,7 @@ void test_network_remotes__transform_r(void)
git_buf buf = GIT_BUF_INIT;
cl_git_pass(git_refspec_transform_r(&buf, _refspec, "refs/heads/master"));
- cl_assert_strequal(git_buf_cstr(&buf), "refs/remotes/test/master");
+ cl_assert_equal_s(git_buf_cstr(&buf), "refs/remotes/test/master");
git_buf_free(&buf);
}