Mercurial > hg
diff tests/test-check-code @ 10722:c4fb2103e734
check-code: improve quote detection regexp, add tests
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 17 Mar 2010 14:15:33 +0100 |
parents | 83dce0f817f4 |
children | 62b8f15683f2 |
line wrap: on
line diff
--- a/tests/test-check-code Wed Mar 17 10:55:28 2010 +0100 +++ b/tests/test-check-code Wed Mar 17 14:15:33 2010 +0100 @@ -12,5 +12,13 @@ return ( 5+6, 9) EOF +cat > quote.py <<EOF +(''' ( 4x5 ) +but """\''' and finally''', +"""let's fool checkpatch""", '1+2', +'"""', 42+1, """and +( 4-1 ) """, "( 1+1 )\" and ") +EOF + check_code=`dirname $0`/../contrib/check-code.py -${check_code} ./wrong.py ./correct.py +${check_code} ./wrong.py ./correct.py ./quote.py