citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit cf338ea3de527a991c617d1224ee5f4444012085
parent d224e39b18ee61102e5b3f842faeb66ebc8e1dcd
Author: kyle <kyle@0x30.net>
Date:   Sun, 29 Jan 2017 18:36:48 -0700

t: check .c files for trailing w/s too.

Diffstat:
Mt/src_trailingspace.t | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/t/src_trailingspace.t b/t/src_trailingspace.t @@ -1,15 +1,19 @@ # # Test that source files have no trailing whitespace. # +use strict; +use warnings; + use Test::More tests => 1; use Test::TrailingSpace; + my $finder = Test::TrailingSpace->new( { root => '.', - filename_regex => qr/\.(?:t|pm|pl|cc|h|sh|1)\z/, + filename_regex => qr/\.(?:t|pm|pl|cc|c|h|sh|1)\z/, }, ); # Run test. -$finder->no_trailing_space("No trailing spaces found."); +$finder->no_trailing_space("is no trailing spaces in source");