Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ public void testScrub() {

// Test various formats.
assertEquals(
"some changes on 1969/12/31",
"some changes on 1970/01/01",
new DescriptionMetadataScrubber("{description} on {date}").scrub(rm).description);

assertEquals(
"some changes on 1969/12/31\nby: author@google.com",
"some changes on 1970/01/01\nby: author@google.com",
new DescriptionMetadataScrubber("{description} on {date}\nby: {author}")
.scrub(rm).description);

assertEquals(
"1969/12/31 saw the birth of commit_number",
"1970/01/01 saw the birth of commit_number",
new DescriptionMetadataScrubber("{date} saw the birth of {id}").scrub(rm).description);

assertEquals(
Expand Down