aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-09-16 00:18:26 +0200
committerTeddy Wing2020-09-16 00:18:26 +0200
commite0b78f7f5112bc9c1b5b1e84d5efe65ede63e3d9 (patch)
tree5f36bdda070d343a444c81fe0ff146665aaa1782
parentacda4f6c75ecc52cf2dbabecc6a9f11fa6f34dd8 (diff)
downloadgit-todo-e0b78f7f5112bc9c1b5b1e84d5efe65ede63e3d9.tar.bz2
t/100-shows-todo-comments-since-fork-point.t: Update output
Update the expectation to include the file name and line number plus the exact line content as printed by the command. Remove the extra newline from the output so that now only a single newline is printed.
-rw-r--r--src/main.rs2
-rw-r--r--t/100-shows-todo-comments-since-fork-point.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 6dd3e91..8e818a4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,7 +34,7 @@ fn main() {
let l = std::str::from_utf8(line.content()).unwrap();
if l.contains("TODO") {
- println!(
+ print!(
"{}:{}:{}",
delta.new_file().path().unwrap().display(),
line_number,
diff --git a/t/100-shows-todo-comments-since-fork-point.t b/t/100-shows-todo-comments-since-fork-point.t
index dd0f161..fbf4f86 100644
--- a/t/100-shows-todo-comments-since-fork-point.t
+++ b/t/100-shows-todo-comments-since-fork-point.t
@@ -37,7 +37,7 @@ system('git commit -m "New TODO"');
ok !$?;
my $todos = qx($BIN);
-is $todos, 'TODO: 100-shows-todo-comments-since-fork-point
+is $todos, 'git-sugdiff.rs:34: // TODO: 100-shows-todo-comments-since-fork-point
';