assert_commit_summary("Newlines are replaced by spaces","Newlines\nare\nreplaced by spaces\n");
assert_commit_summary(" Spaces after newlines are collapsed","\n Spaces after newlines\n are\n collapsed\n ");/* newlines at the very beginning are ignored and not collapsed */
assert_commit_summary(" Spaces before newlines are collapsed"," \nSpaces before newlines \nare \ncollapsed \n");
assert_commit_summary(" Spaces around newlines are collapsed"," \n Spaces around newlines \n are \n collapsed \n ");