Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-10-03 15:36:29 +0400
committerVicent Martí <vicent@github.com>2013-10-03 15:36:29 +0400
commitab1368766240cfe861729642abe1cddd01c0203e (patch)
treed52d30b9d900a056c7c8930e93e598af624d255c /tests-clar
parentc8f2ba994460de75f1cbd3b35fb52d8a5334b59a (diff)
parent598f069b998c42c12439f3f353b6d075905becba (diff)
Merge pull request #1887 from libgit2/ntk/topic/git_message_raw
commit: Introduce git_commit_message_raw()
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/commit/parse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests-clar/commit/parse.c b/tests-clar/commit/parse.c
index c191b3421..41e162440 100644
--- a/tests-clar/commit/parse.c
+++ b/tests-clar/commit/parse.c
@@ -382,9 +382,13 @@ committer Vicent Marti <tanoku@gmail.com> 1273848544 +0200\n\
This commit has a few LF at the start of the commit message";
const char *message =
"This commit has a few LF at the start of the commit message";
-
+ const char *raw_message =
+"\n\
+\n\
+This commit has a few LF at the start of the commit message";
cl_git_pass(parse_commit(&commit, buffer));
cl_assert_equal_s(message, git_commit_message(commit));
+ cl_assert_equal_s(raw_message, git_commit_message_raw(commit));
git_commit__free(commit);
}
@@ -400,8 +404,10 @@ committer Vicent Marti <tanoku@gmail.com> 1273848544 +0200\n\
\n\
\n";
const char *message = "";
+ const char *raw_message = "\n\n";
cl_git_pass(parse_commit(&commit, buffer));
cl_assert_equal_s(message, git_commit_message(commit));
+ cl_assert_equal_s(raw_message, git_commit_message_raw(commit));
git_commit__free(commit);
}