sysread / Reddit-API

Reddit API for perl
22 stars 11 forks source link

helpers.t fails on non English locale #3

Closed aixtal closed 10 years ago

aixtal commented 11 years ago

Test t/helpers.t fails when the user's locale is not set to English.

Example:

LANG=fr_FR.utf-8 prove -vl t/helpers.t
...
not ok 3 - DEBUG

#   Failed test 'DEBUG'
#   at t/helpers.t line 40.
#                   '[Jeu fév  7 08:00:10 2013] [ test 1 ]
# '
#     doesn't match '(?^:^\[... ...\s+\d{1,2} \d\d:\d\d:\d\d \d\d\d\d\] \[ test 1 \]\n$)'
not ok 4 - DEBUG

#   Failed test 'DEBUG'
#   at t/helpers.t line 41.
#                   '[Jeu fév  7 08:00:10 2013] [ test 2 ]
# '
#     doesn't match '(?^:^\[... ...\s+\d{1,2} \d\d:\d\d:\d\d \d\d\d\d\] \[ test 2 \]\n$)'
not ok 5 - DEBUG

#   Failed test 'DEBUG'
#   at t/helpers.t line 42.
#                   '[Jeu fév  7 08:00:10 2013] [ test 3 ]
# '
#     doesn't match '(?^:^\[... ...\s+\d{1,2} \d\d:\d\d:\d\d \d\d\d\d\] \[ test 3 \]\n$)'
sysread commented 10 years ago

Didn't notice this was still open. Marking closed.