Add pcre type.

This commit is contained in:
Anthony Sottile 2014-06-16 21:11:00 -07:00
parent 38673941dc
commit 2cfd2818b5
11 changed files with 184 additions and 10 deletions

View file

@ -0,0 +1,16 @@
from __future__ import absolute_import
from __future__ import unicode_literals
from pre_commit.languages.helpers import file_args_to_stdin
def test_file_args_to_stdin_empty():
assert file_args_to_stdin([]) == ''
def test_file_args_to_stdin_some():
assert file_args_to_stdin(['foo', 'bar']) == 'foo\nbar\n'
def test_file_args_to_stdin_tuple():
assert file_args_to_stdin(('foo', 'bar')) == 'foo\nbar\n'