diff options
author | Teddy Wing | 2020-09-16 00:18:26 +0200 |
---|---|---|
committer | Teddy Wing | 2020-09-16 00:18:26 +0200 |
commit | e0b78f7f5112bc9c1b5b1e84d5efe65ede63e3d9 (patch) | |
tree | 5f36bdda070d343a444c81fe0ff146665aaa1782 | |
parent | acda4f6c75ecc52cf2dbabecc6a9f11fa6f34dd8 (diff) | |
download | git-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.rs | 2 | ||||
-rw-r--r-- | 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 '; |