From e0b78f7f5112bc9c1b5b1e84d5efe65ede63e3d9 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 16 Sep 2020 00:18:26 +0200 Subject: 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. --- src/main.rs | 2 +- t/100-shows-todo-comments-since-fork-point.t | 2 +- 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 '; -- cgit v1.2.3