summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-06 07:39:21 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-01-06 07:39:21 -0500
commitda5385c6cfea1b43ddbd24f414745cfc44dbcb98 (patch)
tree945cbcee81eff4dfe388c6faee0db57482e4e201
parentdb3572b730e5f0976833b4edb1ee07b764deaa95 (diff)
downloadlibgit2-da5385c6cfea1b43ddbd24f414745cfc44dbcb98.tar.gz
status: don't use `// ...` in tests, use `/* ... */`
-rw-r--r--tests/status/renames.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/status/renames.c b/tests/status/renames.c
index d17a94ca7..d6bb69707 100644
--- a/tests/status/renames.c
+++ b/tests/status/renames.c
@@ -723,7 +723,7 @@ void test_status_renames__rename_threshold(void)
git_index *index;
git_status_list *statuslist;
git_status_options opts = GIT_STATUS_OPTIONS_INIT;
-
+
_rename_helper(g_repo, "ikeepsix.txt", "newname.txt",
"Line 1\n" \
"Line 2\n" \
@@ -735,49 +735,49 @@ void test_status_renames__rename_threshold(void)
"Line 8\n" \
"Line 9\n"
);
-
+
opts.flags |= GIT_STATUS_OPT_RENAMES_INDEX_TO_WORKDIR;
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED;
-
+
cl_git_pass(git_repository_index(&index, g_repo));
-
- // Default threshold
+
+ /* Default threshold */
{
struct status_entry expected[] = {
{ GIT_STATUS_WT_RENAMED | GIT_STATUS_WT_MODIFIED, "ikeepsix.txt", "newname.txt" },
};
-
+
cl_git_pass(git_status_list_new(&statuslist, g_repo, &opts));
check_status(statuslist, expected, 1);
git_status_list_free(statuslist);
}
-
- // Threshold set to 90
+
+ /* Threshold set to 90 */
{
struct status_entry expected[] = {
{ GIT_STATUS_WT_DELETED, "ikeepsix.txt", NULL },
{ GIT_STATUS_WT_NEW, "newname.txt", NULL }
};
-
+
opts.rename_threshold = 90;
-
+
cl_git_pass(git_status_list_new(&statuslist, g_repo, &opts));
check_status(statuslist, expected, 2);
git_status_list_free(statuslist);
}
-
- // Threshold set to 25
+
+ /* Threshold set to 25 */
{
struct status_entry expected[] = {
{ GIT_STATUS_WT_RENAMED | GIT_STATUS_WT_MODIFIED, "ikeepsix.txt", "newname.txt" },
};
-
+
opts.rename_threshold = 25;
-
+
cl_git_pass(git_status_list_new(&statuslist, g_repo, &opts));
check_status(statuslist, expected, 1);
git_status_list_free(statuslist);
}
-
+
git_index_free(index);
}