diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-10-02 14:42:41 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-10-03 09:59:55 +0400 |
commit | 598f069b998c42c12439f3f353b6d075905becba (patch) | |
tree | 071f4d9bd0ebd9b626ad831909bc2912cd4638d8 /tests-clar | |
parent | 5bfead1dba919f6b47f52da675ea94407e8baf49 (diff) |
commit: Introduce git_commit_message_raw()
Diffstat (limited to 'tests-clar')
-rw-r--r-- | tests-clar/commit/parse.c | 8 |
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); } |