Permalink
Browse files

Fixed incorrect date regexes in helpers.t

  • Loading branch information...
1 parent 3cf0bc2 commit 7726fc4dd8452c9f089c5d23e2fccbbb74c8e6be @sysread committed Jun 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/helpers.t
View
@@ -37,9 +37,9 @@ my $reddit = Reddit::Client->new(session_file => $filename);
my @lines = $capture->read;
ok(@lines == 3, 'DEBUG');
- ok($lines[0] =~ /^\[... ... \d\d \d\d:\d\d:\d\d \d\d\d\d\] \[ test 1 \]\n$/, 'DEBUG');
- ok($lines[1] =~ /^\[... ... \d\d \d\d:\d\d:\d\d \d\d\d\d\] \[ test 2 \]\n$/, 'DEBUG');
- ok($lines[2] =~ /^\[... ... \d\d \d\d:\d\d:\d\d \d\d\d\d\] \[ test 3 \]\n$/, 'DEBUG');
+ like($lines[0] ,qr/^\[... ...\s+\d{1,2} \d\d:\d\d:\d\d \d\d\d\d\] \[ test 1 \]\n$/, 'DEBUG');
+ like($lines[1] ,qr/^\[... ...\s+\d{1,2} \d\d:\d\d:\d\d \d\d\d\d\] \[ test 2 \]\n$/, 'DEBUG');
+ like($lines[2] ,qr/^\[... ...\s+\d{1,2} \d\d:\d\d:\d\d \d\d\d\d\] \[ test 3 \]\n$/, 'DEBUG');
}

0 comments on commit 7726fc4

Please sign in to comment.