Show More
@@ -0,0 +1,16 b'' | |||||
|
1 | #!/bin/sh | |||
|
2 | #cd `dirname $0` | |||
|
3 | cat > correct.py <<EOF | |||
|
4 | def toto(arg1, arg2): | |||
|
5 | del arg2 | |||
|
6 | return (5 + 6, 9) | |||
|
7 | EOF | |||
|
8 | ||||
|
9 | cat > wrong.py <<EOF | |||
|
10 | def toto( arg1, arg2): | |||
|
11 | del(arg2) | |||
|
12 | return ( 5+6, 9) | |||
|
13 | EOF | |||
|
14 | ||||
|
15 | check_code=`dirname $0`/../contrib/check-code.py | |||
|
16 | ${check_code} ./wrong.py ./correct.py |
General Comments 0
You need to be logged in to leave comments.
Login now